summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-26 10:24:47 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-11-26 12:01:55 (GMT)
commit5838aba1aae5c341941c0779cd947ed0172e3a61 (patch)
tree3af0ca6398b63a642beecfc2fa7a05680f9d1477 /Source/cmTarget.h
parent7a3e45b9d469e468e4db867d51e92ceeed132b79 (diff)
downloadCMake-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/cmTarget.h')
-rw-r--r--Source/cmTarget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 35ec680..7a40d70 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -25,7 +25,8 @@
F(CMP0008) \
F(CMP0020) \
F(CMP0021) \
- F(CMP0022)
+ F(CMP0022) \
+ F(CMP0041)
class cmake;
class cmMakefile;