diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-09-15 20:38:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-28 13:21:42 (GMT) |
commit | 8b5f448ba628dc474d3cd22d67db65551acc0846 (patch) | |
tree | 5fa8506d5d98de07795d3e97efd891a8a0af8c1a /Source/cmExportInstallFileGenerator.cxx | |
parent | 87f4c01910754199bcdcbc9d564de13d36ba2502 (diff) | |
download | CMake-8b5f448ba628dc474d3cd22d67db65551acc0846.zip CMake-8b5f448ba628dc474d3cd22d67db65551acc0846.tar.gz CMake-8b5f448ba628dc474d3cd22d67db65551acc0846.tar.bz2 |
exports: first try at error handling if a target is missing
Now, if an imported target depends on a library which must come
from some other export set, cmake generates a check which errors
out if that target does not exist. I guess instead of completely
erroring out it would be better to only make the find_package() fail.
Alex
Diffstat (limited to 'Source/cmExportInstallFileGenerator.cxx')
-rw-r--r-- | Source/cmExportInstallFileGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx index ba048b5..94b9f46 100644 --- a/Source/cmExportInstallFileGenerator.cxx +++ b/Source/cmExportInstallFileGenerator.cxx @@ -188,8 +188,9 @@ cmExportInstallFileGenerator if(!properties.empty()) { // Get the rest of the target details. + std::vector<std::string> missingTargets; this->SetImportDetailProperties(config, suffix, - te->Target, properties); + te->Target, properties, missingTargets); // TOOD: PUBLIC_HEADER_LOCATION // This should wait until the build feature propagation stuff @@ -198,6 +199,7 @@ cmExportInstallFileGenerator // properties); // Generate code in the export file. + this->GenerateMissingTargetsCheckCode(os, missingTargets); this->GenerateImportPropertyCode(os, config, te->Target, properties); this->GenerateImportedFileChecksCode(os, te->Target, properties, importedLocations); |