aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindWSWinLibs.cmake
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2013-10-10 17:13:02 +0000
committerJörg Mayer <jmayer@loplof.de>2013-10-10 17:13:02 +0000
commit7c25a38963c488d22bca280622fb15d63abf6846 (patch)
tree8e99b38d8e47716f4c94b9a6421ddc38a39a3dfb /cmake/modules/FindWSWinLibs.cmake
parenta50dee3286db96e5749e21bba6f9b4bab3fb6dfc (diff)
lib is required for linking, the dlls are in bin
And with this change, I'm finally able to run the executables in the top builddir. svn path=/trunk/; revision=52498
Diffstat (limited to 'cmake/modules/FindWSWinLibs.cmake')
-rw-r--r--cmake/modules/FindWSWinLibs.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/modules/FindWSWinLibs.cmake b/cmake/modules/FindWSWinLibs.cmake
index 208d626ea0..dfb8203092 100644
--- a/cmake/modules/FindWSWinLibs.cmake
+++ b/cmake/modules/FindWSWinLibs.cmake
@@ -29,6 +29,8 @@ function(WSExtendPath _LIB_PATH_LIST _PATH_FILE)
#message( STATUS "All libs: ${_LIB_PATH_LIST}." )
foreach( THIS_LIB_PATH ${_LIB_PATH_LIST} )
get_filename_component( LIB_PATH ${THIS_LIB_PATH} PATH )
+ # lib is required for linking, the dlls are in bin
+ string( REPLACE "/lib" "/bin" LIB_PATH "${LIB_PATH}" )
#message( STATUS "Raw path ${THIS_LIB_PATH} processed to ${LIB_PATH}." )
set( WS_LOCAL_LIB_PATHS "${WS_LOCAL_LIB_PATHS}" ${LIB_PATH} )
endforeach()