mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
generated-scripts: use CMAKE_CURRENT_LIST_DIR where possible
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user