mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 22:47:25 +00:00
update configure script
This commit is contained in:
parent
0a06f309f6
commit
3a0e37ee8a
@ -5,9 +5,17 @@ project(Darkflame
|
||||
)
|
||||
|
||||
# TEMP - Sanitizer flags
|
||||
if (UNIX)
|
||||
# add_compile_options("-fsanitize=address,undefined" "-fvisibility=default")
|
||||
add_compile_options("-fsanitize=undefined" "-fvisibility=default")
|
||||
add_link_options("-fsanitize=undefined" "-static-libasan")
|
||||
add_compile_options("-fsanitize=undefined" "-fvisibility=default")
|
||||
add_link_options("-fsanitize=undefined")
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
add_link_options("-static-libsan")
|
||||
else()
|
||||
add_link_options("-static-libasan")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# check if the path to the source directory contains a space
|
||||
if("${CMAKE_SOURCE_DIR}" MATCHES " ")
|
||||
|
Loading…
Reference in New Issue
Block a user