blob: 9c1f444ff1681ab7404bb398df0e37870ef5aeab (
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 LAST
)
endif()
|