Merge pull request #29 from certik/rpath

Set the proper RPATH for installed libraries
This commit is contained in:
Jan W. Krieger 2019-11-21 21:42:49 +01:00 committed by GitHub
commit 863b80385f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,3 +18,7 @@ elseif(MSVC)
# have reference type and must not be parenthesized # have reference type and must not be parenthesized
add_definitions(/D_CRT_NO_VA_START_VALIDATION) add_definitions(/D_CRT_NO_VA_START_VALIDATION)
endif() endif()
if(NOT APPLE)
set(CMAKE_INSTALL_RPATH $ORIGIN)
endif()