blob: a5a53fdd9ab793075caa5a83d804b9f8fe24ea22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
execute_process(COMMAND ${CMAKE_COMMAND} -E true
COMMAND ${CMAKE_COMMAND} -E sleep 10
COMMAND ${CMAKE_COMMAND} -E true
TIMEOUT 1
RESULT_VARIABLE result
)
if(NOT result EQUAL "0")
execute_process(COMMAND ${CMAKE_COMMAND} -E true
COMMAND ${CMAKE_COMMAND} -E sleep 10
COMMAND ${CMAKE_COMMAND} -E true
TIMEOUT 1
COMMAND_ERROR_IS_FATAL ANY
)
endif()
|