Skip to content

Commit 333229a

Browse files
committed
cmake: add USES_TERMINAL to show cargo output
Otherwise the CMake output is just stuck at the rust build step for however long it takes to build. Signed-Off-By: Johannes Schilling <[email protected]>
1 parent 349164d commit 333229a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ ${config_paths}
157157
add_custom_command(
158158
OUTPUT ${DUMMY_FILE}
159159
BYPRODUCTS ${RUST_LIBRARY} ${WRAPPER_FILE}
160+
USES_TERMINAL
160161
COMMAND
161162
${CMAKE_COMMAND} -E
162163
env BUILD_DIR=${CMAKE_CURRENT_BINARY_DIR}
@@ -199,6 +200,7 @@ ${config_paths}
199200
# it is important to keep this in sync with the above.
200201
add_custom_command(
201202
OUTPUT generate_rust_docs
203+
USES_TERMINAL
202204
COMMAND
203205
${CMAKE_COMMAND} -E
204206
env BUILD_DIR=${CMAKE_CURRENT_BINARY_DIR}

0 commit comments

Comments
 (0)