blob: 6cbbc092f2ca6df7867bbb8866ec79ca5eb325b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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)
|