diff options
author | Brad King <brad.king@kitware.com> | 2013-05-21 19:13:26 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-05-21 19:13:26 (GMT) |
commit | 5947d039873606fbc6ce854afb16a5db09b1736c (patch) | |
tree | 6fa391c8dd4250357c59ebb5763e7beea5c76bfe /Source/cmPolicies.cxx | |
parent | 484112d045a2b22b1d336f1d1043f0f6e2a340f0 (diff) | |
parent | eabefa8b02b399b00aea83185b6b364ab5b6aa3d (diff) | |
download | CMake-5947d039873606fbc6ce854afb16a5db09b1736c.zip CMake-5947d039873606fbc6ce854afb16a5db09b1736c.tar.gz CMake-5947d039873606fbc6ce854afb16a5db09b1736c.tar.bz2 |
Merge topic 'error-on-exported-missing-include-dir'
eabefa8 Error on relative path in INCLUDE_DIRECTORIES target property.
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r-- | Source/cmPolicies.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx index d2b8adf..32829a6 100644 --- a/Source/cmPolicies.cxx +++ b/Source/cmPolicies.cxx @@ -530,6 +530,20 @@ cmPolicies::cmPolicies() "The NEW behavior for this policy is to link executables to " "qtmain.lib automatically when they link to QtCore IMPORTED target.", 2,8,11,0, cmPolicies::WARN); + + this->DefinePolicy( + CMP0021, "CMP0021", + "Fatal error on relative paths in INCLUDE_DIRECTORIES target property.", + "CMake 2.8.10.2 and lower allowed the INCLUDE_DIRECTORIES target " + "property to contain relative paths. The base path for such relative " + "entries is not well defined. CMake 2.8.12 issues a FATAL_ERROR if the " + "INCLUDE_DIRECTORIES property contains a relative path." + "\n" + "The OLD behavior for this policy is not to warn about relative paths in " + "the INCLUDE_DIRECTORIES target property. " + "The NEW behavior for this policy is to issue a FATAL_ERROR if " + "INCLUDE_DIRECTORIES contains a relative path.", + 2,8,11,20130516, cmPolicies::WARN); } cmPolicies::~cmPolicies() |