summaryrefslogtreecommitdiffstats
path: root/Source/cmExportFileGenerator.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/cmExportFileGenerator.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/cmExportFileGenerator.h')
-rw-r--r--Source/cmExportFileGenerator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmExportFileGenerator.h b/Source/cmExportFileGenerator.h
index 05f73a2..f271e55 100644
--- a/Source/cmExportFileGenerator.h
+++ b/Source/cmExportFileGenerator.h
@@ -56,6 +56,11 @@ protected:
void GenerateImportPropertyCode(std::ostream& os, const char* config,
cmTarget* target,
ImportPropertyMap const& properties);
+ void GenerateImportedFileChecksCode(std::ostream& os, cmTarget* target,
+ ImportPropertyMap const& properties,
+ const std::set<std::string>& importedLocations);
+ void GenerateImportedFileCheckLoop(std::ostream& os);
+
// Collect properties with detailed information about targets beyond
// their location on disk.