Debian Codegraph @

Tests/RunCMake/Codegen/min-graph-2.cmake

raw
1 add_custom_command(
2 OUTPUT
3 ${CMAKE_CURRENT_BINARY_DIR}/generated.h
4 COMMAND
5 ${CMAKE_COMMAND} -E
6 copy ${CMAKE_CURRENT_SOURCE_DIR}/generated.h.in
7 ${CMAKE_CURRENT_BINARY_DIR}/generated.h
8 CODEGEN
9 )
10
11 # This target should not be built. It has no reason
12 # to be part of the codegen build graph
13 add_custom_target(error_custom_target ALL
14 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/generated.h
15
16 # Cause the build to fail
17 COMMAND ${CMAKE_COMMAND} -E false
18 )