aboutsummaryrefslogtreecommitdiff
path: root/dep/SFMT
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-07-15 15:24:35 +0200
committerShauren <shauren.trinity@gmail.com>2024-07-15 15:24:35 +0200
commit77fe2745febab9e4362b09750093d831325e6091 (patch)
tree5ba9fa4dfe061dc304cedd80c5632d5460966ab7 /dep/SFMT
parentd4998bd04a27237aba635401d5aff0d7aafa12e5 (diff)
Build: CMake cleanup
* Migrate all add_definitions to target_compile_definitions * Remove -D from preprocessor definitions added by target_compile_definitions (unneccessary, cmake strips it anyway) * Fixed NO_BUFFERPOOL not being set on g3d if jemalloc is used * Moved library/compiler specific compile flag settings spread all over various CMakeLists to their related library/compiler file * Remove ancient manual link flag settings for worldserver
Diffstat (limited to 'dep/SFMT')
-rw-r--r--dep/SFMT/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/dep/SFMT/CMakeLists.txt b/dep/SFMT/CMakeLists.txt
index 117fae8ba4c..700118e9b5f 100644
--- a/dep/SFMT/CMakeLists.txt
+++ b/dep/SFMT/CMakeLists.txt
@@ -36,7 +36,7 @@ target_include_directories(sfmt
${CMAKE_CURRENT_SOURCE_DIR})
# using the standard Mersenne exponent 19937
-target_compile_definitions(sfmt PUBLIC -DSFMT_MEXP=19937)
+target_compile_definitions(sfmt PUBLIC SFMT_MEXP=19937)
# enable SIMD instructions if available
include(CheckCXXCompilerFlag)
@@ -67,11 +67,11 @@ else ()
endif ()
if (HAVE_NEON)
- target_compile_definitions(sfmt PUBLIC -DHAVE_NEON)
+ target_compile_definitions(sfmt PUBLIC HAVE_NEON)
endif ()
if (HAVE_SSE2)
- target_compile_definitions(sfmt PUBLIC -DHAVE_SSE2)
+ target_compile_definitions(sfmt PUBLIC HAVE_SSE2)
endif ()
set_target_properties(sfmt PROPERTIES LINKER_LANGUAGE CXX)