check platform variable

This commit is contained in:
ThePhD 2018-01-20 12:10:50 -05:00
parent b708d268df
commit 0afd822644

View File

@ -59,7 +59,7 @@ if (MSVC)
add_compile_options(/MP)
endif()
else()
if (x86)
if (PLATFORM MATCHES "x86")
list(APPEND CMAKE_C_FLAGS "-m32")
list(APPEND CMAKE_CXX_FLAGS "-m32")
list(APPEND CMAKE_EXE_LINKER_FLAGS "-m32")