summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-08 14:59:07 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-10-08 14:59:07 (GMT)
commit40c84683aafc9447a0e17d81a71d061efde84bdb (patch)
treef5090d54d217c02c75b92980d61bfdee974c0db5 /Source/cmPolicies.cxx
parent5a6c15155cbf18de60e118700e3e778f796e213d (diff)
parent904ff9fe592882db5dae88e526db2b380d92f87d (diff)
downloadCMake-40c84683aafc9447a0e17d81a71d061efde84bdb.zip
CMake-40c84683aafc9447a0e17d81a71d061efde84bdb.tar.gz
CMake-40c84683aafc9447a0e17d81a71d061efde84bdb.tar.bz2
Merge topic 'export-policy'
904ff9f export: Add policy CMP0024 to disallow include() of export files
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r--Source/cmPolicies.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx
index f9197e0..9e5e6e0 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -601,6 +601,25 @@ cmPolicies::cmPolicies()
"The NEW behavior for this policy is to not to allow mixing of the "
"keyword and plain signatures.",
2,8,12,0, cmPolicies::WARN);
+
+ this->DefinePolicy(
+ CMP0024, "CMP0024",
+ "Disallow include export result.",
+ "CMake 2.8.12 and lower allowed use of the include() command with the "
+ "result of the export() command. This relies on the assumption that "
+ "the export() command has an immediate effect at configure-time during a "
+ "cmake run. Certain properties of targets are not fully determined "
+ "until later at generate-time, such as the link language and complete "
+ "list of link libraries. Future refactoring will change the effect of "
+ "the export() command to be executed at generate-time. Use ALIAS "
+ "targets instead in cases where the goal is to refer to targets by "
+ "another name"
+ "\n"
+ "The OLD behavior for this policy is to allow including the result "
+ "of an export() command. "
+ "The NEW behavior for this policy is to not to allow including the "
+ "result of an export() command.",
+ 2,8,13,0, cmPolicies::WARN);
}
cmPolicies::~cmPolicies()