summaryrefslogtreecommitdiffstats
path: root/Source/cmExportInstallFileGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-01-13 08:48:45 (GMT)
committerBrad King <brad.king@kitware.com>2013-01-15 19:36:21 (GMT)
commit6c828f9126453d27c45e1ca6113602fe9df8cbe2 (patch)
treee2b293549bbca37d0008b58903fe73bf15f6d0a1 /Source/cmExportInstallFileGenerator.cxx
parentcfd4f0a4f49da41330f648a665b24cb507829ede (diff)
downloadCMake-6c828f9126453d27c45e1ca6113602fe9df8cbe2.zip
CMake-6c828f9126453d27c45e1ca6113602fe9df8cbe2.tar.gz
CMake-6c828f9126453d27c45e1ca6113602fe9df8cbe2.tar.bz2
Move the exported check for file existence.
Check only once, in the Config.cmake file, instead of once in each Config-<cfg>.cmake file.
Diffstat (limited to 'Source/cmExportInstallFileGenerator.cxx')
-rw-r--r--Source/cmExportInstallFileGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx
index bffa2b6..7eed5ab 100644
--- a/Source/cmExportInstallFileGenerator.cxx
+++ b/Source/cmExportInstallFileGenerator.cxx
@@ -104,6 +104,8 @@ bool cmExportInstallFileGenerator::GenerateMainFile(std::ostream& os)
<< "ENDFOREACH(f)\n"
<< "\n";
+ this->GenerateImportedFileCheckLoop(os);
+
// Generate an import file for each configuration.
bool result = true;
for(std::vector<std::string>::const_iterator
@@ -249,8 +251,6 @@ cmExportInstallFileGenerator
}
}
- this->GenerateImportedFileCheckLoop(os);
-
// Cleanup the import prefix variable.
if(!this->ImportPrefix.empty())
{