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