mirror of
https://github.com/reactos/CMake.git
synced 2025-03-03 17:39:10 +00:00

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
157 B
CMake
7 lines
157 B
CMake
|
|
cmake_policy(SET CMP0037 NEW)
|
|
|
|
add_library("lib with spaces" empty.cpp)
|
|
add_executable("exe with spaces" empty.cpp)
|
|
add_custom_target("custom with spaces")
|