Skip to content

Commit

Permalink
Make it possible to run a debug version of OpenCOR from within Qt Cre…
Browse files Browse the repository at this point in the history
…ator.
  • Loading branch information
agarny committed Apr 7, 2020
1 parent 4735444 commit cdacb2d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Expand Up @@ -592,6 +592,13 @@ elseif(NOT WIN32)
set(CMAKE_SKIP_RPATH TRUE)

set(LINK_RPATH_FLAG "-Wl,-rpath,'$ORIGIN/../lib'")

if(NOT RELEASE_MODE)
set(LINK_RPATH_FLAG "${LINK_RPATH_FLAG} -Wl,-rpath,'$ORIGIN/lib'")
# Note: this makes it possible to run a debug version of OpenCOR from
# within Qt Creator...
endif()

set(LINK_FLAGS_PROPERTIES "${LINK_FLAGS_PROPERTIES} -Wl,-rpath-link,${QT_LIBRARY_DIR} ${LINK_RPATH_FLAG}")
endif()

Expand Down

0 comments on commit cdacb2d

Please sign in to comment.