summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-25 18:44:35 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-07-27 19:59:03 (GMT)
commit570938cbfd132ad0e586327466109aad87c21ede (patch)
treea8f8d9d259868f2227809f3846096776c83fe7e0 /Source/cmake.cxx
parentec38e4c84faa276e664f950b417a71c3901485f6 (diff)
downloadCMake-570938cbfd132ad0e586327466109aad87c21ede.zip
CMake-570938cbfd132ad0e586327466109aad87c21ede.tar.gz
CMake-570938cbfd132ad0e586327466109aad87c21ede.tar.bz2
cmExportTryCompileFileGenerator: Create cmGeneratorTargets.
This is not a deprecated behavior, but only requires IMPORTED targets be made.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 7bf3832..fb9f123 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -483,7 +483,7 @@ bool cmake::FindPackage(const std::vector<std::string>& args)
std::string linkPath;
std::string flags;
std::string linkFlags;
- gg->CreateGeneratorTargets(lg.get());
+ gg->CreateGeneratorTargets(cmGlobalGenerator::AllTargets, lg.get());
cmGeneratorTarget *gtgt = gg->GetGeneratorTarget(tgt);
lg->GetTargetFlags(linkLibs, frameworkPath, linkPath, flags, linkFlags,
gtgt, false);