Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
ad61dd67
Commit
ad61dd67
authored
6 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Remove -DNDEBUG flags for RelWithDebInfo build type
parent
fca67ac0
No related branches found
No related tags found
1 merge request
!11
Feature/mpi
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+12
-2
12 additions, 2 deletions
CMakeLists.txt
with
12 additions
and
2 deletions
CMakeLists.txt
+
12
−
2
View file @
ad61dd67
...
...
@@ -22,14 +22,24 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set
(
PASTIS_SOURCE_DIR
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
)
set
(
PASTIS_BINARY_DIR
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
)
# Change RelWithDebInfo to compile assertions
SET
(
"CMAKE_CXX_FLAGS_RELWITHDEBINFO"
"-g -O2"
CACHE STRING
"Flags used by the compiler during release builds with debug info and assertions"
FORCE
)
SET
(
"CMAKE_C_FLAGS_RELWITHDEBINFO"
"-g -O2"
CACHE STRING
"Flags used by the compiler during release builds with debug info and assertions"
FORCE
)
# Add new build types
message
(
"* Adding build types..."
)
SET
(
CMAKE_CXX_FLAGS_COVERAGE
"-g
-Wall
-O0 --coverage"
"-g -O0 --coverage"
CACHE STRING
"Flags used by the C++ compiler during coverage builds."
FORCE
)
SET
(
CMAKE_C_FLAGS_COVERAGE
"-g
-Wall
-O0 --coverage"
"-g -O0 --coverage"
CACHE STRING
"Flags used by the C compiler during coverage builds."
FORCE
)
SET
(
CMAKE_EXE_LINKER_FLAGS_COVERAGE
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment