Permalink
Browse files

Move RNG exponent definition to main CMakeLists.

  • Loading branch information...
Mark Morschhäuser
Mark Morschhäuser committed Mar 20, 2014
1 parent 4afed34 commit 2bedc0f4c4553f69b3eb270ea9e3e7e8c964a25d
Showing with 2 additions and 2 deletions.
  1. +2 −0 CMakeLists.txt
  2. +0 −2 gemrb/core/CMakeLists.txt
View
@@ -152,6 +152,8 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
if (NOT APPLE AND NOT UNSAFE_PLUGIN)
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
endif (NOT APPLE AND NOT UNSAFE_PLUGIN)
+ # GNU systems need to define the Mersenne exponent for the RNG to compile w/o warning
+ ADD_DEFINITIONS("-DSFMT_MEXP=19937")
ENDIF()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/")
@@ -142,8 +142,6 @@ FILE(GLOB gemrb_core_LIB_SRCS
${PLATFORM_SRC}
)
-ADD_DEFINITIONS("-DSFMT_MEXP=19937")
-
if (STATIC_LINK)
ADD_LIBRARY(gemrb_core STATIC ${gemrb_core_LIB_SRCS})
else (STATIC_LINK)

0 comments on commit 2bedc0f

Please sign in to comment.