Run All: Allow script to access terminal directly
Before this change the output of `ninja run_all` was buffered.
Consequently we could not see which sub-command caused problems if we
terminated the script before it finished. This behaviour was especially
problematic, if Travis killed the script cause it ran for too long.
@@ -35,10 +35,15 @@ macro (do_test source)
)
endmacro (do_test)
+if (NOT CMAKE_VERSION VERSION_LESS 3.2)
+ set (USES_TERMINAL USES_TERMINAL)
+endif (NOT CMAKE_VERSION VERSION_LESS 3.2)
+
add_custom_target(run_all
COMMAND "${CMAKE_SOURCE_DIR}/scripts/run_all"
"$<CONFIGURATION>"
- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
+ WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
+ ${USES_TERMINAL})
add_custom_target(run_nokdbtests
COMMAND "${CMAKE_SOURCE_DIR}/scripts/run_nokdbtests"
