Skip to content

Commit 08c2cb1

Browse files
dario23d3zd3z
authored andcommitted
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 0d4ad9d commit 08c2cb1

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
@@ -161,6 +161,7 @@ ${config_paths}
161161
add_custom_command(
162162
OUTPUT ${DUMMY_FILE}
163163
BYPRODUCTS ${RUST_LIBRARY} ${WRAPPER_FILE}
164+
USES_TERMINAL
164165
COMMAND
165166
${CMAKE_COMMAND} -E
166167
env BUILD_DIR=${CMAKE_CURRENT_BINARY_DIR}
@@ -203,6 +204,7 @@ ${config_paths}
203204
# it is important to keep this in sync with the above.
204205
add_custom_command(
205206
OUTPUT generate_rust_docs
207+
USES_TERMINAL
206208
COMMAND
207209
${CMAKE_COMMAND} -E
208210
env BUILD_DIR=${CMAKE_CURRENT_BINARY_DIR}

0 commit comments

Comments
 (0)