forked from USCiLab/cereal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable cross-platform portability test
CMake fix 32-bit executable with generator Win64
- Loading branch information
Showing
3 changed files
with
37 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
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) |
This file was deleted.
Oops, something went wrong.