diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-04-20 18:08:05 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-04-20 19:36:21 (GMT) |
commit | 408512858670c04597b644b03c5db04856b474e8 (patch) | |
tree | 42bdce46e2f7086aade0589539d717fd44c16e3f /Source | |
parent | a1a7f629184cf068785330c81378106abf240542 (diff) | |
download | CMake-408512858670c04597b644b03c5db04856b474e8.zip CMake-408512858670c04597b644b03c5db04856b474e8.tar.gz CMake-408512858670c04597b644b03c5db04856b474e8.tar.bz2 |
generated-scripts: use CMAKE_CURRENT_LIST_DIR where possible
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmExportInstallFileGenerator.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx index 06fd453..adccdfe 100644 --- a/Source/cmExportInstallFileGenerator.cxx +++ b/Source/cmExportInstallFileGenerator.cxx @@ -253,8 +253,7 @@ void cmExportInstallFileGenerator::LoadConfigFiles(std::ostream& os) // Now load per-configuration properties for them. /* clang-format off */ os << "# Load information for each installed configuration.\n" - << "get_filename_component(_DIR \"${CMAKE_CURRENT_LIST_FILE}\" PATH)\n" - << "file(GLOB _cmake_config_files \"${_DIR}/" + << "file(GLOB _cmake_config_files \"${CMAKE_CURRENT_LIST_DIR}/" << this->GetConfigImportFileGlob() << "\")\n" << "foreach(_cmake_config_file IN LISTS _cmake_config_files)\n" << " include(\"${_cmake_config_file}\")\n" |