diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-11-26 10:24:47 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-11-26 12:01:55 (GMT) |
commit | 5838aba1aae5c341941c0779cd947ed0172e3a61 (patch) | |
tree | 3af0ca6398b63a642beecfc2fa7a05680f9d1477 /Source/cmPolicies.cxx | |
parent | 7a3e45b9d469e468e4db867d51e92ceeed132b79 (diff) | |
download | CMake-5838aba1aae5c341941c0779cd947ed0172e3a61.zip CMake-5838aba1aae5c341941c0779cd947ed0172e3a61.tar.gz CMake-5838aba1aae5c341941c0779cd947ed0172e3a61.tar.bz2 |
Export: Report error on relative include with genex.
Diagnostics which check the sanity of exported include paths
previously skipped over any path containing a generator expression.
Introduce a policy to issue an error message in such cases.
The export files created in the OLD behavior are not usable, because
they contain relative paths or paths to the source or build location
which are not suitable for use on installation. CMake will report an
error on import.
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r-- | Source/cmPolicies.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx index b9b469c..0b3018e 100644 --- a/Source/cmPolicies.cxx +++ b/Source/cmPolicies.cxx @@ -306,6 +306,11 @@ cmPolicies::cmPolicies() CMP0040, "CMP0040", "The target in the TARGET signature of add_custom_command() must exist.", 3,0,0,0, cmPolicies::WARN); + + this->DefinePolicy( + CMP0041, "CMP0041", + "Error on relative include with generator expression.", + 3,0,0,0, cmPolicies::WARN); } cmPolicies::~cmPolicies() |