Fixes GCC build
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-03-12 10:33:16 +01:00
parent d9dda8433e
commit a99e3e2d6c
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 7 additions and 5 deletions

View File

@ -32,13 +32,15 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options(-fconcepts) add_compile_options(-fconcepts)
endif () endif ()
if (CMAKE_BUILD_TYPE MATCHES Release AND NOT WINDOWS) if (CMAKE_BUILD_TYPE MATCHES Release)
# Include debug symbols in all linux builds if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
message("Including debug symbols") # Include debug symbols in all linux builds
add_compile_options(-g -gline-tables-only) message("Including debug symbols")
add_compile_options(-g -gline-tables-only)
endif ()
# FIXME: Add debug symbols for GCC
endif () endif ()
set(THREADS_PREFER_PTHREAD_FLAG ON) set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED) find_package(Threads REQUIRED)