mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Add and use a couple helper functions for issuing policy warnings. This improves consistency and allows some simplification of many call sites. (One or two instances in particular are greatly simplified.)
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
CMake Warning \(policy\) in CMakeLists\.txt:
|
|
Policy CMP0200 is not set: Location and configuration selection for
|
|
imported targets is more consistent\. Run "cmake --help-policy CMP0200" for
|
|
policy details\. Use the cmake_policy command to set the policy and
|
|
suppress this warning\.
|
|
|
|
Configuration selection for imported target "lib_test1" selected
|
|
configuration "CAT", but would select configuration "DOG" under the NEW
|
|
policy\.
|
|
This warning is for project developers\. Use -Wno-author or -Wno-policy to
|
|
suppress it\.
|
|
|
|
CMake Warning \(policy\) in CMakeLists\.txt:
|
|
Policy CMP0200 is not set: Location and configuration selection for
|
|
imported targets is more consistent\. Run "cmake --help-policy CMP0200" for
|
|
policy details\. Use the cmake_policy command to set the policy and
|
|
suppress this warning\.
|
|
|
|
Configuration selection for imported target "lib_test2" selected
|
|
configuration "\(none\)", but would select configuration "[^"]*" under the
|
|
NEW policy\.
|
|
This warning is for project developers\. Use -Wno-author or -Wno-policy to
|
|
suppress it\.
|