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.
14 lines
355 B
14 lines
355 B
3 years ago
|
execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c
|
||
|
"import os; os.kill(os.getpid(),11)"
|
||
|
COMMAND ${CMAKE_COMMAND} -E true
|
||
|
RESULT_VARIABLE result
|
||
|
)
|
||
|
|
||
|
if(result EQUAL "0")
|
||
|
execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c
|
||
|
"import os; os.kill(os.getpid(),11)"
|
||
|
COMMAND ${CMAKE_COMMAND} -E true
|
||
|
COMMAND_ERROR_IS_FATAL LAST
|
||
|
)
|
||
|
endif()
|