summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-05-09 13:01:05 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-05-09 13:01:05 (GMT)
commit488b82f8ccca4de8a052b94ddf2be131682561cb (patch)
tree7adf5992481704ab4dceeb4a9f6ad012bc1d80e3 /Source
parent138ddfae509d55ee260c57caee7684e08678d20f (diff)
parentf45c16e7ee562f9918b75134b54b92661c5a98c8 (diff)
downloadCMake-488b82f8ccca4de8a052b94ddf2be131682561cb.zip
CMake-488b82f8ccca4de8a052b94ddf2be131682561cb.tar.gz
CMake-488b82f8ccca4de8a052b94ddf2be131682561cb.tar.bz2
Merge topic 'fix-export-unset'
f45c16e7 Fix export file variable pollution
Diffstat (limited to 'Source')
-rw-r--r--Source/cmExportFileGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx
index 2b3ce14..89a8f6c 100644
--- a/Source/cmExportFileGenerator.cxx
+++ b/Source/cmExportFileGenerator.cxx
@@ -1040,6 +1040,9 @@ void cmExportFileGenerator::GenerateExpectedTargetsCode(std::ostream& os,
" endif()\n"
"endforeach()\n"
"if(\"${_targetsDefined}\" STREQUAL \"${_expectedTargets}\")\n"
+ " unset(_targetsDefined)\n"
+ " unset(_targetsNotDefined)\n"
+ " unset(_expectedTargets)\n"
" set(CMAKE_IMPORT_FILE_VERSION)\n"
" cmake_policy(POP)\n"
" return()\n"