File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,17 @@ project(librabbitmq "C")
33set (CMAKE_INCLUDE_CURRENT_DIR ON )
44
55# Stuff dealing with code generation
6- configure_file (codegen.py ${AMQP_CODEGEN_DIR} /codegen.py)
7-
86set (AMQP_CODEGEN_PY "${AMQP_CODEGEN_DIR} /amqp_codegen.py" )
97set (CODEGEN_PY "${AMQP_CODEGEN_DIR} /codegen.py" )
108set (AMQP_SPEC_JSON_PATH "${AMQP_CODEGEN_DIR} /amqp-rabbitmq-0.9.1.json" )
119
1210#generate amqp_framing.h/amqp_framing.c
11+ add_custom_command (
12+ OUTPUT ${CODEGEN_PY}
13+ COMMAND ${CMAKE_COMMAND} ARGS -E copy ${CMAKE_CURRENT_SOURCE_DIR} /codegen.py ${CODEGEN_PY}
14+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /codegen.py
15+ VERBATIM )
16+
1317add_custom_command (
1418 OUTPUT "amqp_framing.h"
1519 COMMAND ${PYTHON_EXECUTABLE} ARGS ${CODEGEN_PY} header ${AMQP_SPEC_JSON_PATH} ${CMAKE_CURRENT_BINARY_DIR} /amqp_framing.h
You can’t perform that action at this time.
0 commit comments