diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2012-12-25 02:20:00 -0500 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2012-12-25 02:20:00 -0500 |
commit | 077ae273698c7e0f22e96dc22ac1a2632b4352d4 (patch) | |
tree | aaae8bd79130cf3acd8ea9b80ca8022ffd7bc076 /CMakeLists.txt | |
parent | d4e1c958e27596af44db9be9046528f6d9116312 (diff) |
Fix linking libraries so their rpath is set correctly and isn't stripped on install.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ad3b9ca06..8133d45aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -212,13 +212,13 @@ endif(CMAKE244_OR_BETTER) # If extra include directories were specified, tell cmake about them. if(EXTRA_INCLUDE) include_directories(${EXTRA_INCLUDE}) - link_directories(${EXTRA_INCLUDE}) endif(EXTRA_INCLUDE) # If extra library directories were specified, tell cmake about them. if(EXTRA_LIBS) foreach(LIB ${EXTRA_LIBS}) - set(CXXFLAGS "${CXXFLAGS} -L${LIB}") + set(LDFLAGS "${LDFLAGS} -L${LIB}") + link_directories(${LIB}) endforeach(LIB) endif(EXTRA_LIBS) |