mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
20 lines
515 B
CMake
20 lines
515 B
CMake
add_definitions(-fno-delete-null-pointer-checks)
|
|
|
|
if( USE_SFMT)
|
|
add_definitions(-msse2 -mfpmath=sse -DHAVE_SSE2 -D__SSE2__)
|
|
message(STATUS "- GCC: SFMT enabled, SSE2 flags forced")
|
|
endif()
|
|
|
|
if( WITH_WARNINGS )
|
|
add_definitions(-Wall -Wfatal-errors -Wextra)
|
|
message(STATUS "- GCC: All warnings enabled")
|
|
else()
|
|
add_definitions(--no-warnings)
|
|
message(STATUS "- GCC: All warnings disabled")
|
|
endif()
|
|
|
|
if( WITH_COREDEBUG )
|
|
add_definitions(-ggdb3)
|
|
message(STATUS "- GCC: Debug-flags set (-ggdb3)")
|
|
endif()
|