mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
* 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
25 lines
515 B
CMake
25 lines
515 B
CMake
if(PLATFORM EQUAL 32)
|
|
target_compile_options(trinity-compile-option-interface
|
|
INTERFACE
|
|
-axSSE2)
|
|
else()
|
|
target_compile_options(trinity-compile-option-interface
|
|
INTERFACE
|
|
-xSSE2)
|
|
endif()
|
|
|
|
if(WITH_WARNINGS)
|
|
target_compile_options(trinity-warning-interface
|
|
INTERFACE
|
|
-w1)
|
|
|
|
message(STATUS "ICC: All warnings enabled")
|
|
endif()
|
|
|
|
if(WITH_COREDEBUG)
|
|
target_compile_options(trinity-compile-option-interface
|
|
INTERFACE
|
|
-g)
|
|
message(STATUS "ICC: Debug-flag set (-g)")
|
|
endif()
|