diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-07-15 15:24:35 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-07-15 15:24:35 +0200 |
commit | 77fe2745febab9e4362b09750093d831325e6091 (patch) | |
tree | 5ba9fa4dfe061dc304cedd80c5632d5460966ab7 /dep/CascLib | |
parent | d4998bd04a27237aba635401d5aff0d7aafa12e5 (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/CascLib')
-rw-r--r-- | dep/CascLib/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dep/CascLib/CMakeLists.txt b/dep/CascLib/CMakeLists.txt index e27710ffe18..b1a1e90b5e6 100644 --- a/dep/CascLib/CMakeLists.txt +++ b/dep/CascLib/CMakeLists.txt @@ -59,7 +59,7 @@ target_include_directories(casc PRIVATE ${CMAKE_SOURCE_DIR}/dep) -target_compile_definitions(casc PUBLIC -D__SYS_ZLIB -DCASCLIB_NO_AUTO_LINK_LIBRARY -DCASCLIB_NODEBUG) +target_compile_definitions(casc PUBLIC __SYS_ZLIB CASCLIB_NO_AUTO_LINK_LIBRARY CASCLIB_NODEBUG) target_link_libraries(casc PRIVATE |