diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index 210c8f0c..f87876be 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -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)