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:
2over12
2022-08-29 11:34:50 -04:00
committed by GitHub
parent 1c2f67ce48
commit 9966017ca0
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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
View File
@@ -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