diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-19 23:12:37 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-20 22:52:23 (GMT) |
commit | c099e00fc0a9c47a2addaca145952b1c33195fab (patch) | |
tree | 6997d09c8174eaa0e8d75fed5f4ce89e3f127556 /Source/cmExportBuildFileGenerator.cxx | |
parent | d74bca5a8fee1d45c60b60a70a2a1a90abb74180 (diff) | |
download | CMake-c099e00fc0a9c47a2addaca145952b1c33195fab.zip CMake-c099e00fc0a9c47a2addaca145952b1c33195fab.tar.gz CMake-c099e00fc0a9c47a2addaca145952b1c33195fab.tar.bz2 |
Access policy status from cmGeneratorTarget at generate time.
Diffstat (limited to 'Source/cmExportBuildFileGenerator.cxx')
-rw-r--r-- | Source/cmExportBuildFileGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExportBuildFileGenerator.cxx b/Source/cmExportBuildFileGenerator.cxx index be65a19..23c11d7 100644 --- a/Source/cmExportBuildFileGenerator.cxx +++ b/Source/cmExportBuildFileGenerator.cxx @@ -107,8 +107,8 @@ bool cmExportBuildFileGenerator::GenerateMainFile(std::ostream& os) this->PopulateInterfaceProperty("INTERFACE_POSITION_INDEPENDENT_CODE", gte, properties); const bool newCMP0022Behavior = - gte->Target->GetPolicyStatusCMP0022() != cmPolicies::WARN - && gte->Target->GetPolicyStatusCMP0022() != cmPolicies::OLD; + gte->GetPolicyStatusCMP0022() != cmPolicies::WARN + && gte->GetPolicyStatusCMP0022() != cmPolicies::OLD; if (newCMP0022Behavior) { this->PopulateInterfaceLinkLibrariesProperty(gte, |