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.
cmake/Tests/RunCMake/Codegen/implicit-depends-append-cod...

19 lines
376 B

add_custom_command(
OUTPUT
${CMAKE_CURRENT_BINARY_DIR}/main.cpp
# ERROR out if IMPLICIT_DEPENDS is used with CODEGEN
IMPLICIT_DEPENDS C main.c
)
add_custom_command(
OUTPUT
${CMAKE_CURRENT_BINARY_DIR}/main.cpp
COMMAND
${CMAKE_COMMAND} -E
copy ${CMAKE_CURRENT_SOURCE_DIR}/error.c
${CMAKE_CURRENT_BINARY_DIR}/main.cpp
CODEGEN
APPEND
)