Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move RNG exponent definition to main CMakeLists.

  • Loading branch information...
commit 2bedc0f4c4553f69b3eb270ea9e3e7e8c964a25d 1 parent 4afed34
@VanNostrand VanNostrand authored
Showing with 2 additions and 2 deletions.
  1. +2 −0  CMakeLists.txt
  2. +0 −2  gemrb/core/CMakeLists.txt
View
2  CMakeLists.txt
@@ -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/")
View
2  gemrb/core/CMakeLists.txt
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.