mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 15:48:52 +00:00
3900fcf4a8
Teach add_custom_target to check the policy too. Extend the policy to disallow reserved target names that we use for builtin targets like "all". Extend the RunCMake.CMP0037 test to cover these cases.
7 lines
115 B
CMake
7 lines
115 B
CMake
|
|
cmake_policy(SET CMP0037 OLD)
|
|
|
|
add_library(all empty.cpp)
|
|
add_executable(clean empty.cpp)
|
|
add_custom_target(help)
|