mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
CMake: Define -m32 flag for x86 build under Unix, fixes #8
This commit is contained in:
parent
e8c3adeb38
commit
76ea35fdb6
1 changed files with 7 additions and 0 deletions
|
|
@ -37,3 +37,10 @@ endif (TARGET_CPU STREQUAL "")
|
|||
if (NOT ${TARGET_CPU} IN_LIST TARGET_CPU_LIST)
|
||||
message(FATAL_ERROR "Unknown value '${TARGET_CPU}' for variable TARGET_CPU, the following values are supported: ${TARGET_CPU_LIST}")
|
||||
endif (NOT ${TARGET_CPU} IN_LIST TARGET_CPU_LIST)
|
||||
|
||||
if (UNIX)
|
||||
if (TARGET_CPU STREQUAL "x86")
|
||||
set(CMAKE_C_FLAGS -m32)
|
||||
set(CMAKE_CXX_FLAGS -m32)
|
||||
endif (TARGET_CPU STREQUAL "x86")
|
||||
endif(UNIX)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue