We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9925b4a commit 031ab52Copy full SHA for 031ab52
CMakeLists.txt
@@ -23,8 +23,12 @@ include(AddRootBench)
23
24
#---ROOTbench dependencies
25
find_program(TIME_EXECUTABLE time)
26
+# Testing valid output of /usr/bin/time -v
27
+exec_program(${TIME_EXECUTABLE} ARGS -v ${CMAKE_COMMAND} -E environment OUTPUT_VARIABLE TIME_OUTPUT RETURN_VALUE TIME_EXECUTABLE_VALID)
28
if(NOT TIME_EXECUTABLE)
- message(WARNING "/usr/bin/time is requirement for rootbench.git")
29
+ if(NOT TIME_EXECUTABLE_VALID)
30
+ message(FATAL_ERROR "/usr/bin/time is a requirement for rootbench.git")
31
+ endif()
32
endif()
33
34
# You need first to tell CMake where to find the ROOT installation. This can either be the
0 commit comments