mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-08 11:59:48 -04:00
build: allow full cross-compile build with codegen
This commit is contained in:
parent
b54b15adcf
commit
8330736b3b
@ -120,7 +120,7 @@ function(add_cpp2_thrift_library idlfile)
|
||||
OUTPUT ${_THRIFT_GEN_SRC}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${idlfile}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/thrift/${_THRIFT_OUTPUT_PATH}/${_THRIFTNAME}.thrift
|
||||
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/bin/thrift1
|
||||
COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} ${CMAKE_CURRENT_BINARY_DIR}/bin/thrift1
|
||||
-I ${CMAKE_CURRENT_SOURCE_DIR}/fbthrift
|
||||
-o ${CMAKE_CURRENT_BINARY_DIR}/thrift/${_THRIFT_OUTPUT_PATH}
|
||||
--gen ${_THRIFT_GEN} ${_THRIFTNAME}.thrift
|
||||
|
Loading…
x
Reference in New Issue
Block a user