You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
425 B
19 lines
425 B
3 years ago
|
add_custom_command(
|
||
|
OUTPUT warn.txt
|
||
|
COMMAND ${CMAKE_COMMAND} -E touch warn.txt
|
||
|
DEPFILE warn.d
|
||
|
)
|
||
|
cmake_policy(SET CMP0116 OLD)
|
||
|
add_custom_command(
|
||
|
OUTPUT old.txt
|
||
|
COMMAND ${CMAKE_COMMAND} -E touch old.txt
|
||
|
DEPFILE old.d
|
||
|
)
|
||
|
cmake_policy(SET CMP0116 NEW)
|
||
|
add_custom_command(
|
||
|
OUTPUT new.txt
|
||
|
COMMAND ${CMAKE_COMMAND} -E touch new.txt
|
||
|
DEPFILE new.d
|
||
|
)
|
||
|
add_custom_target(cc ALL DEPENDS warn.txt old.txt new.txt)
|