blob: 8e640a0689b2d9d82b7ccb65d8064c72544a4cc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
file(COPY_FILE "${exe_no_extension}" "${CMAKE_CURRENT_BINARY_DIR}/exe" INPUT_MAY_BE_RECENT)
execute_process(
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/exe"
COMMAND_ERROR_IS_FATAL ANY
)
file(COPY_FILE "${exe_extension}" "${CMAKE_CURRENT_BINARY_DIR}/exe.exe" INPUT_MAY_BE_RECENT)
execute_process(
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/exe"
COMMAND_ERROR_IS_FATAL ANY
)
file(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/exe")
execute_process(
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/exe"
COMMAND_ERROR_IS_FATAL ANY
)
|