diff options
author | silinoron <none@none> | 2010-08-20 12:42:14 -0700 |
---|---|---|
committer | silinoron <none@none> | 2010-08-20 12:42:14 -0700 |
commit | 43b1c2dba4eb59047756ff1f76817fbba1f33256 (patch) | |
tree | 395cb523edfa7e6c668d62f9071619218b79a033 /CMakeLists.txt | |
parent | ca350b4758fef6a2f0a277fb11a5e420887ae718 (diff) |
* Remove support for map-based random number generation (which seems unused).
* Re-add in support for the old mersenne twister for those whose processors don't support SSE2.
* Toggling whether or not you are using SFMT is as easy as checking a CMake flag, USE_SFMT, which defaults to 0.
--HG--
branch : trunk
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 45ed673a705..a61b38f7901 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,6 +96,7 @@ option(SCRIPTPCH "Use precompiled headers when compiling scripts project" 1) option(GAMEPCH "Use precompiled headers when compiling game project" 1) option(SQL "Copy SQL files during installation" 0) option(WARNINGS "Enable all compile-warnings during compile" 0) +option(USE_SFMT "Use SFMT for random number generation." 0) # # Search for readline on *nixbased systems (CLI-handler) @@ -280,6 +281,17 @@ if( SQL ) else() message("* Install SQL-files : No (default)") endif() + +# +# SFMT... +# +if( USE_SFMT ) + add_definitions(-DUSE_SFMT_FOR_RNG) + message("* Use SFMT for RNG : Yes") +else() + message("* Use SFMT for RNG : No (default)") +endif() + message("") ##### |