File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ include(CheckCXXCompilerFlag)
8
8
option (BUILD_STUDIO_APP "Build Studio application" ON )
9
9
option (BUILD_GUILE_BINDINGS "Build Guile bindings" ON )
10
10
option (BUILD_PYTHON_BINDINGS "Build Python bindings" ON )
11
+ option (ENABLE_DEBUG "Add debugging Symbols to the binaries" ON )
11
12
12
13
option (LIBFIVE_PACKED_OPCODES
13
14
"Tightly pack opcodes (breaks compatibility with older saved f-reps)"
@@ -47,8 +48,14 @@ endif()
47
48
48
49
################################################################################
49
50
51
+ if (ENABLE_DEBUG)
52
+ set (LIBFIVE_DEBUGGING "-g " )
53
+ else ()
54
+ set (LIBFIVE_DEBUGGING "" )
55
+ endif ()
56
+
50
57
if (NOT MSVC )
51
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -g -fPIC -pedantic -Werror=switch" )
58
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra ${LIBFIVE_DEBUGGING} -fPIC -pedantic -Werror=switch" )
52
59
53
60
# Sometimes this flag is not supported (e.g. on Apple Silicon)
54
61
check_cxx_compiler_flag("-march=native" MARCH_SUPPORTED)
You can’t perform that action at this time.
0 commit comments