diff --git a/CMakeLists.txt b/CMakeLists.txt index 7dfe159..e507227 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,6 @@ option(CORE "Build the core" ON) option(BASE "Build the base game code" ON) option(D3XP "Build the d3xp game code" OFF) option(DEDICATED "Build the dedicated server" OFF) -option(X86 "Cross compile for x86 (only applicable on x86_64)" OFF) option(ONATIVE "Optimize for the host CPU" OFF) if (NOT CMAKE_SYSTEM_PROCESSOR) @@ -47,10 +46,6 @@ elseif (cpu MATCHES "i.86") set(cpu "x86") endif() -if (cpu STREQUAL "x86_64" AND X86) - set(cpu "x86") -endif() - if (MSVC AND CMAKE_CL_64) set(cpu "amd64") endif() @@ -188,11 +183,6 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang") set(sys_libs ${sys_libs} "-framework Carbon -framework Cocoa -framework OpenGL -framework IOKit") else() - if (cpu STREQUAL "x86" AND X86) - add_definitions(-m32) - set(ldflags "${ldflags} -m32") - endif() - if (os STREQUAL "linux") set(sys_libs ${sys_libs} dl) endif()