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 /Tests/RunCMake/CMP0041/CMP0041-WARN-stderr.txt | |
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 'Tests/RunCMake/CMP0041/CMP0041-WARN-stderr.txt')
-rw-r--r-- | Tests/RunCMake/CMP0041/CMP0041-WARN-stderr.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0041/CMP0041-WARN-stderr.txt b/Tests/RunCMake/CMP0041/CMP0041-WARN-stderr.txt new file mode 100644 index 0000000..a7d303e --- /dev/null +++ b/Tests/RunCMake/CMP0041/CMP0041-WARN-stderr.txt @@ -0,0 +1,32 @@ +CMake Warning in CMakeLists.txt: + Policy CMP0041 is not set: Error on relative include with generator + expression. Run "cmake --help-policy CMP0041" for policy details. Use the + cmake_policy command to set the policy and suppress this warning. + + Target "foo" INTERFACE_INCLUDE_DIRECTORIES property contains relative path: + + "include/\$<TARGET_PROPERTY:NAME>" + + +CMake Warning in CMakeLists.txt: + Policy CMP0041 is not set: Error on relative include with generator + expression. Run "cmake --help-policy CMP0041" for policy details. Use the + cmake_policy command to set the policy and suppress this warning. + + Target "foo" INTERFACE_INCLUDE_DIRECTORIES property contains path: + + ".*/Tests/RunCMake/CMP0041/include/\$<TARGET_PROPERTY:NAME>" + + which is prefixed in the source directory. + + +CMake Warning in CMakeLists.txt: + Policy CMP0041 is not set: Error on relative include with generator + expression. Run "cmake --help-policy CMP0041" for policy details. Use the + cmake_policy command to set the policy and suppress this warning. + + Target "foo" INTERFACE_INCLUDE_DIRECTORIES property contains path: + + ".*/Tests/RunCMake/CMP0041/CMP0041-WARN-build/include/\$<TARGET_PROPERTY:NAME>" + + which is prefixed in the build directory. |