aboutsummaryrefslogtreecommitdiff
path: root/dep/jemalloc
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/jemalloc
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/jemalloc')
-rw-r--r--dep/jemalloc/CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/dep/jemalloc/CMakeLists.txt b/dep/jemalloc/CMakeLists.txt
index 42bc5fd51e4..48e7c36d9de 100644
--- a/dep/jemalloc/CMakeLists.txt
+++ b/dep/jemalloc/CMakeLists.txt
@@ -91,11 +91,9 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT NOJEM)
${CMAKE_CURRENT_SOURCE_DIR}/include)
target_compile_definitions(jemalloc
- PUBLIC
- -DNO_BUFFERPOOL
PRIVATE
- -D_GNU_SOURCE
- -D_REENTRAN)
+ _GNU_SOURCE
+ _REENTRAN)
target_link_libraries(jemalloc
PRIVATE