|
|
@ -6,15 +6,15 @@ IF(UNIX)
|
|
|
|
IF(DFHACK_BUILD_64)
|
|
|
|
IF(DFHACK_BUILD_64)
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 -mno-avx")
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 -mno-avx")
|
|
|
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64 -mno-avx")
|
|
|
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64 -mno-avx")
|
|
|
|
IF(NOT APPLE)
|
|
|
|
|
|
|
|
# Linux: Check for unresolved symbols at link time
|
|
|
|
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-z,defs")
|
|
|
|
|
|
|
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,-z,defs")
|
|
|
|
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
ELSE()
|
|
|
|
ELSE()
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
|
|
|
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
|
|
|
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
IF(NOT APPLE)
|
|
|
|
|
|
|
|
# Linux: Check for unresolved symbols at link time
|
|
|
|
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-z,defs")
|
|
|
|
|
|
|
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,-z,defs")
|
|
|
|
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
include_directories("${dfhack_SOURCE_DIR}/library/include")
|
|
|
|
include_directories("${dfhack_SOURCE_DIR}/library/include")
|
|
|
|