Fixed issue where compile options were added too late.
continuous-integration/drone/push Build is failing Details

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

View File

@ -17,6 +17,11 @@ if (SHARED)
set(LIBTYPE SHARED)
endif (SHARED)
if (NOT WINDOWS)
# Include debug symbols in all linux builds
add_compile_options(-g -gfull -g3)
endif()
# Grab all cpp and hpp files in our source directories.
file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp" "CInterface/*.cpp" "CInterface/*.hpp")
add_library(Arbutils ${LIBTYPE} ${SRC_FILES})
@ -43,8 +48,6 @@ endif (WINDOWS)
set(LINKS)
if (NOT WINDOWS)
# Include debug symbols in all linux builds
add_compile_options(-g -gfull -g3)
set(LINKS ${LINKS} -ldw)
endif()
# If we want to link the C and C++ library statically, link those as well.