Skip to content

Commit b59daf0

Browse files
authored
Merge pull request #340 from pmienk/master
Address shared library errors in cmake builds.
2 parents ef08094 + fa29f25 commit b59daf0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/gsl.CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,8 @@ else ()
954954
set( libdir "\\\${exec_prefix}/lib" )
955955
set( includedir "\\\${exec_prefix}/include" )
956956

957+
set( CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib" )
958+
957959
set( PACKAGE_VERSION "$(my.repository.version)" )
958960
set( VERSION "${PACKAGE_VERSION}" )
959961
endif ()

0 commit comments

Comments
 (0)