summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallExportGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-04-20 18:06:52 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-04-20 19:36:20 (GMT)
commitc2194176db8248d63e8e8b77740bf9a1285f3680 (patch)
tree522c6529119e6ef831882e9dfe5ab8f2ec38baae /Source/cmInstallExportGenerator.cxx
parent233997a914af8341527eddd83a09fcc0f383ec65 (diff)
downloadCMake-c2194176db8248d63e8e8b77740bf9a1285f3680.zip
CMake-c2194176db8248d63e8e8b77740bf9a1285f3680.tar.gz
CMake-c2194176db8248d63e8e8b77740bf9a1285f3680.tar.bz2
generated-scripts: unset used variables
Diffstat (limited to 'Source/cmInstallExportGenerator.cxx')
-rw-r--r--Source/cmInstallExportGenerator.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmInstallExportGenerator.cxx b/Source/cmInstallExportGenerator.cxx
index eadfd2e..18ce601 100644
--- a/Source/cmInstallExportGenerator.cxx
+++ b/Source/cmInstallExportGenerator.cxx
@@ -206,7 +206,9 @@ void cmInstallExportGenerator::GenerateScriptActions(std::ostream& os,
<< "\\\" will be replaced. Removing files [${_cmake_old_config_files}].\")\n";
os << indentNNN << "file(REMOVE ${_cmake_old_config_files})\n";
os << indentNN << "endif()\n";
+ os << indentNN << "unset(_cmake_old_config_files)\n";
os << indentN << "endif()\n";
+ os << indentN << "unset(_cmake_export_file_changed)\n";
os << indent << "endif()\n";
/* clang-format on */