Skip to content
Snippets Groups Projects
Commit 75b9c352 authored by Dietrich Rothe's avatar Dietrich Rothe Committed by Dietrich Rothe
Browse files

let cmake set useful rpath on installation of binaries

parent 185e2753
No related branches found
No related tags found
1 merge request!3update project template
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment