diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b56089..77e6c18 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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.