cmake: Get rid of "-m32" check

This doesn't work. Always add -m32 when X86 was set.
This commit is contained in:
dhewg 2011-12-14 12:11:08 +01:00
parent b2ccf9240c
commit 1dad3d711f

View file

@ -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)