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/cmExportFileGenerator.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/cmExportFileGenerator.cxx')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index 7aa35d3..d13253a 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -988,7 +988,7 @@ void cmExportFileGenerator::GenerateExpectedTargetsCode( "set(_cmake_targets_defined \"\")\n" "set(_cmake_targets_not_defined \"\")\n" "set(_cmake_expected_targets \"\")\n" - "foreach(_cmake_expected_target " << expectedTargets << ")\n" + "foreach(_cmake_expected_target IN ITEMS " << expectedTargets << ")\n" " list(APPEND _cmake_expected_targets \"${_cmake_expected_target}\")\n" " if(TARGET \"${_cmake_expected_target}\")\n" " list(APPEND _cmake_targets_defined \"${_cmake_expected_target}\")\n" |