mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
check platform variable
This commit is contained in:
parent
b708d268df
commit
0afd822644
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user