mirror of
https://github.com/RPCS3/cereal.git
synced 2024-12-02 16:26:19 +00:00
df44243bad
CMake fix 32-bit executable with generator Win64
17 lines
579 B
CMake
17 lines
579 B
CMake
macro(EXEC_CMD_CHECK)
|
|
message("running ${ARGN}")
|
|
execute_process(COMMAND ${ARGN} RESULT_VARIABLE CMD_RESULT)
|
|
if(CMD_RESULT)
|
|
message(FATAL_ERROR "Error running ${ARGN}")
|
|
endif()
|
|
endmacro()
|
|
|
|
set(PORTABILITY_TEST_32 "${PORTABILITY_TEST_DIR}/portability_test32")
|
|
set(PORTABILITY_TEST_64 "${PORTABILITY_TEST_DIR}/portability_test64")
|
|
|
|
exec_cmd_check(${PORTABILITY_TEST_64} save 64)
|
|
exec_cmd_check(${PORTABILITY_TEST_32} load 32)
|
|
exec_cmd_check(${PORTABILITY_TEST_32} save 32)
|
|
exec_cmd_check(${PORTABILITY_TEST_64} load 64)
|
|
exec_cmd_check(${PORTABILITY_TEST_64} remove 64)
|