mirror of
https://github.com/lifting-bits/sleigh
synced 2026-06-21 13:56:12 +00:00
Add kSleighFullSpecInstallDir to gDefaultSearchPaths (#126)
Allows FindSpecFile to succeed if the specfiles are still in the install prefix defined in CMake.
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
namespace sleigh {
|
||||
|
||||
static const char *kSleighSpecInstallDir = "@sleigh_INSTALL_SPECDIR@";
|
||||
static const char *kSleighFullSpecInstallDir =
|
||||
"@CMAKE_INSTALL_PREFIX@/@sleigh_INSTALL_SPECDIR@";
|
||||
static const char *kSleighSpecBuildDir = "@spec_files_build_dir@";
|
||||
|
||||
} // namespace sleigh
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ FindSpecFileInSearchPath(std::string_view file_name,
|
||||
|
||||
const std::vector<std::filesystem::path> gDefaultSearchPaths = {
|
||||
// Derived from the installation
|
||||
kSleighSpecInstallDir,
|
||||
kSleighFullSpecInstallDir,
|
||||
// Derived from the build
|
||||
kSleighSpecBuildDir,
|
||||
// Common install locations
|
||||
|
||||
Reference in New Issue
Block a user