diff options
author | Brad King <brad.king@kitware.com> | 2016-05-09 13:01:05 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-05-09 13:01:05 (GMT) |
commit | 488b82f8ccca4de8a052b94ddf2be131682561cb (patch) | |
tree | 7adf5992481704ab4dceeb4a9f6ad012bc1d80e3 /Source | |
parent | 138ddfae509d55ee260c57caee7684e08678d20f (diff) | |
parent | f45c16e7ee562f9918b75134b54b92661c5a98c8 (diff) | |
download | CMake-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.cxx | 3 |
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" |