From 34ba9331edf09d4c18435e189331ac9ebc2e77af Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 16 Aug 2020 17:18:12 +0200 Subject: [PATCH] Only add debug symbols on Linux build --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 80c859a..0b56089 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,8 +3,6 @@ project(Arbutils) # Enable all warnings, and make them error when occurring. 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. set(CMAKE_CXX_STANDARD 20) @@ -45,6 +43,8 @@ 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.