You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
376 B
16 lines
376 B
3 years ago
|
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()
|