mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-19 07:51:54 +00:00
cmake: Get rid of "-m32" check
This doesn't work. Always add -m32 when X86 was set.
This commit is contained in:
parent
b2ccf9240c
commit
1dad3d711f
1 changed files with 3 additions and 6 deletions
|
@ -199,12 +199,9 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|||
|
||||
set(sys_libs ${sys_libs} "-framework Carbon -framework Cocoa -framework OpenGL -framework OpenAL -framework CoreAudio -framework IOKit")
|
||||
else()
|
||||
if (cpu STREQUAL "x86")
|
||||
CHECK_C_COMPILER_FLAG("-m32" cc_has_m32)
|
||||
if (cc_has_m32)
|
||||
add_definitions(-m32)
|
||||
set(ldflags ${ldflags} "-m32")
|
||||
endif()
|
||||
if (cpu STREQUAL "x86" AND X86)
|
||||
add_definitions(-m32)
|
||||
set(ldflags ${ldflags} "-m32")
|
||||
endif()
|
||||
|
||||
if (NOT MINGW)
|
||||
|
|
Loading…
Reference in a new issue