5838aba1aa
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.
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
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/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-tid-WARN-build/include/\$<TARGET_PROPERTY:NAME>"
|
|
|
|
which is prefixed in the build directory.
|