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.
14 lines
301 B
CMake
14 lines
301 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(CMP0037-OLD-space)
|
|
run_cmake(CMP0037-NEW-space)
|
|
run_cmake(CMP0037-WARN-space)
|
|
run_cmake(CMP0037-NEW-colon)
|
|
|
|
if(NOT (WIN32 AND "${RunCMake_GENERATOR}" MATCHES "Make"))
|
|
run_cmake(CMP0037-WARN-colon)
|
|
endif()
|
|
|
|
run_cmake(CMP0037-OLD-reserved)
|
|
run_cmake(CMP0037-NEW-reserved)
|