CMake/Tests/RunCMake/TargetPolicies/PolicyList.cmake

9 lines
146 B
CMake
Raw Normal View History

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