Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TEC Server Config
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
MSK-SW
Infrastructure and Support
TEC
TEC Server Config
Commits
75b9c352
Commit
75b9c352
authored
1 year ago
by
Dietrich Rothe
Committed by
Dietrich Rothe
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
let cmake set useful rpath on installation of binaries
parent
185e2753
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
update project template
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/set_default_flags.cmake
+5
-0
5 additions, 0 deletions
cmake/set_default_flags.cmake
with
5 additions
and
0 deletions
cmake/set_default_flags.cmake
+
5
−
0
View file @
75b9c352
...
...
@@ -37,3 +37,8 @@ set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O3 -g")
set
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-g -O0"
)
set
(
CMAKE_C_FLAGS_TSAN
"
${
CMAKE_C_FLAGS
}
-g -O1 -fsanitize=thread -fno-inline"
)
set
(
CMAKE_C_FLAGS_ASAN
"
${
CMAKE_C_FLAGS
}
-g -O0 -fsanitize=address -fsanitize=undefined -fsanitize=leak"
)
# Make sure any non-standard library path are added in library or executable targets.
# Since this in done only at install time, behavior of unit tests is not affected.
set
(
CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE
)
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