Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
8
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
KiCad
KiCad Source Code
kicad
Commits
b824051a
Commit
b824051a
authored
Feb 03, 2020
by
Jon Evans
🎸
Browse files
Ensure DEBUG is defined on all platforms for debug builds
parent
ba9dedaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
b824051a
...
...
@@ -170,6 +170,10 @@ if( KICAD_USE_VALGRIND )
add_definitions
(
-DKICAD_USE_VALGRIND
)
endif
()
# Ensure DEBUG is defined for all platforms in Debug builds
# change to add_compile_definitions() after minimum required CMake version is 3.12
set_property
(
DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:Debug>:DEBUG>
)
# CMP0063: CMake < 3.3 does not handle hidden visibility for static libraries,
# and 3.3 is backwards compatible when the minimum version is smaller than 3.3.
if
(
POLICY CMP0063
)
...
...
@@ -336,11 +340,11 @@ if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
# but no information about local variables.
# Level 3 includes full information, but binaries are much larger.
if
(
BUILD_SMALL_DEBUG_FILES
)
set
(
CMAKE_C_FLAGS_DEBUG
"-g1 -ggdb1
-DDEBUG
"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g1 -ggdb1
-DDEBUG
"
)
set
(
CMAKE_C_FLAGS_DEBUG
"-g1 -ggdb1"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g1 -ggdb1"
)
else
()
set
(
CMAKE_C_FLAGS_DEBUG
"-g3 -ggdb3
-DDEBUG
"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g3 -ggdb3
-DDEBUG
"
)
set
(
CMAKE_C_FLAGS_DEBUG
"-g3 -ggdb3"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g3 -ggdb3"
)
endif
()
if
(
KICAD_SANITIZE
)
...
...
Wayne Stambaugh
@stambaughw
mentioned in commit
e9330456
·
Feb 07, 2020
mentioned in commit
e9330456
mentioned in commit e9330456632dbb724bd11b8dfd1e3dbd95387487
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment