From 2ad160bfa41c920023cf836f5a4365262c670834 Mon Sep 17 00:00:00 2001 From: Johannes Schilling Date: Sat, 5 Apr 2025 00:29:49 +0200 Subject: [PATCH] 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 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 21c88e57..5f044f91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -157,6 +157,7 @@ ${config_paths} add_custom_command( OUTPUT ${DUMMY_FILE} BYPRODUCTS ${RUST_LIBRARY} ${WRAPPER_FILE} + USES_TERMINAL COMMAND ${CMAKE_COMMAND} -E env BUILD_DIR=${CMAKE_CURRENT_BINARY_DIR} @@ -199,6 +200,7 @@ ${config_paths} # it is important to keep this in sync with the above. add_custom_command( OUTPUT generate_rust_docs + USES_TERMINAL COMMAND ${CMAKE_COMMAND} -E env BUILD_DIR=${CMAKE_CURRENT_BINARY_DIR}