summaryrefslogtreecommitdiffstats
path: root/Source/cmExportInstallFileGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-04-20 18:02:40 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-04-20 19:33:06 (GMT)
commit59cc92085ea7c5a81de7d79946fa97f045adea78 (patch)
tree3daa3a24e748ec02f7c5d5bfb23249a6e5488394 /Source/cmExportInstallFileGenerator.cxx
parenta2cb1754a59d870f2a507d071d0c6c5891702645 (diff)
downloadCMake-59cc92085ea7c5a81de7d79946fa97f045adea78.zip
CMake-59cc92085ea7c5a81de7d79946fa97f045adea78.tar.gz
CMake-59cc92085ea7c5a81de7d79946fa97f045adea78.tar.bz2
generated-cmake: use `_cmake_` prefixes for local variables
This avoids stomping on any user variables.
Diffstat (limited to 'Source/cmExportInstallFileGenerator.cxx')
-rw-r--r--Source/cmExportInstallFileGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx
index 0c41946..3d667cb 100644
--- a/Source/cmExportInstallFileGenerator.cxx
+++ b/Source/cmExportInstallFileGenerator.cxx
@@ -254,10 +254,10 @@ void cmExportInstallFileGenerator::LoadConfigFiles(std::ostream& os)
/* clang-format off */
os << "# Load information for each installed configuration.\n"
<< "get_filename_component(_DIR \"${CMAKE_CURRENT_LIST_FILE}\" PATH)\n"
- << "file(GLOB CONFIG_FILES \"${_DIR}/"
+ << "file(GLOB _cmake_config_files \"${_DIR}/"
<< this->GetConfigImportFileGlob() << "\")\n"
- << "foreach(f ${CONFIG_FILES})\n"
- << " include(${f})\n"
+ << "foreach(_cmake_config_file ${_cmake_config_files})\n"
+ << " include(${_cmake_config_file})\n"
<< "endforeach()\n"
<< "\n";
/* clang-format on */