mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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.
9 lines
146 B
CMake
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>
|
|
)
|