CMake/Tests/RunCMake/TargetPolicies/PolicyList.cmake
Stephen Kelly 484bb888a0 Genex: Make CMP0021 and CMP0022 usable with TARGET_POLICY
Use preprocessor loops and add a unit test for the appropriate
policies. All policies whose value is recorded at target creation
time should be part of this list.
2013-07-11 11:56:14 +02:00

9 lines
146 B
CMake

enable_language(CXX)
add_library(empty empty.cpp)
target_compile_definitions(empty
PRIVATE
$<$<TARGET_POLICY:NOT_A_POLICY>:SOME_DEFINE>
)