diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-04-20 18:05:36 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-04-20 19:34:28 (GMT) |
commit | 233997a914af8341527eddd83a09fcc0f383ec65 (patch) | |
tree | 309760092a7173970cee55f50a3173b7d66021b5 /Source/cmExportInstallFileGenerator.cxx | |
parent | 2ec44be41e1359e6df07edcc86d0934042cd2ef3 (diff) | |
download | CMake-233997a914af8341527eddd83a09fcc0f383ec65.zip CMake-233997a914af8341527eddd83a09fcc0f383ec65.tar.gz CMake-233997a914af8341527eddd83a09fcc0f383ec65.tar.bz2 |
generated-scripts: use `foreach(IN LISTS)`
Diffstat (limited to 'Source/cmExportInstallFileGenerator.cxx')
-rw-r--r-- | Source/cmExportInstallFileGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx index edee26d..7de1230 100644 --- a/Source/cmExportInstallFileGenerator.cxx +++ b/Source/cmExportInstallFileGenerator.cxx @@ -256,7 +256,7 @@ void cmExportInstallFileGenerator::LoadConfigFiles(std::ostream& os) << "get_filename_component(_DIR \"${CMAKE_CURRENT_LIST_FILE}\" PATH)\n" << "file(GLOB _cmake_config_files \"${_DIR}/" << this->GetConfigImportFileGlob() << "\")\n" - << "foreach(_cmake_config_file ${_cmake_config_files})\n" + << "foreach(_cmake_config_file IN LISTS _cmake_config_files)\n" << " include(\"${_cmake_config_file}\")\n" << "endforeach()\n" << "\n"; |