Files
Matthew Woehlke a7415d243a Diagnostics: Simplify issuing policy warnings
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.)
2026-05-20 11:55:13 -04:00

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\.