Only add debug symbols on Linux build
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2020-08-16 17:18:12 +02:00
parent 620248f329
commit 34ba9331ed
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,6 @@ project(Arbutils)
# Enable all warnings, and make them error when occurring. # Enable all warnings, and make them error when occurring.
add_compile_options(-Wall -Wextra -Werror) add_compile_options(-Wall -Wextra -Werror)
# Include debug symbols in all builds
add_compile_options(-g -gfull -g3)
# We like new stuff, so set the c++ standard to c++20. # We like new stuff, so set the c++ standard to c++20.
set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD 20)
@ -45,6 +43,8 @@ endif (WINDOWS)
set(LINKS) set(LINKS)
if (NOT WINDOWS) if (NOT WINDOWS)
# Include debug symbols in all linux builds
add_compile_options(-g -gfull -g3)
set(LINKS ${LINKS} -ldw) set(LINKS ${LINKS} -ldw)
endif() endif()
# If we want to link the C and C++ library statically, link those as well. # If we want to link the C and C++ library statically, link those as well.