summaryrefslogtreecommitdiffstats
path: root/Source/cmExportInstallFileGenerator.h
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-11-12 17:12:07 (GMT)
committerBrad King <brad.king@kitware.com>2011-11-22 20:55:00 (GMT)
commita2be068c75890a9b6723c0bbb2d32a108cb84eed (patch)
tree782be0b5570258cae5fdf292081eacf9120082a7 /Source/cmExportInstallFileGenerator.h
parentb90b6969f68950d57e6ba23fa92780c78c804218 (diff)
downloadCMake-a2be068c75890a9b6723c0bbb2d32a108cb84eed.zip
CMake-a2be068c75890a9b6723c0bbb2d32a108cb84eed.tar.gz
CMake-a2be068c75890a9b6723c0bbb2d32a108cb84eed.tar.bz2
install(EXPORT): Enforce existence of imported target files
Typical <package>Config.cmake files for find_package() rely only on the files generated by install(EXPORT). They might be wrong, for whatever reasons, like people manually deleted files, projects were packaged wrong by distributions, whatever. To protect against this, add checks that the file locations we are importing actually exist on disk. Alex
Diffstat (limited to 'Source/cmExportInstallFileGenerator.h')
-rw-r--r--Source/cmExportInstallFileGenerator.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmExportInstallFileGenerator.h b/Source/cmExportInstallFileGenerator.h
index 8c8fb44..fb678e8 100644
--- a/Source/cmExportInstallFileGenerator.h
+++ b/Source/cmExportInstallFileGenerator.h
@@ -75,7 +75,9 @@ protected:
void SetImportLocationProperty(const char* config,
std::string const& suffix,
cmInstallTargetGenerator* itgen,
- ImportPropertyMap& properties);
+ ImportPropertyMap& properties,
+ std::set<std::string>& importedLocations
+ );
void ComplainAboutImportPrefix(cmInstallTargetGenerator* itgen);