Permalink
Browse files

Specify install_name of shared library for MacOSX.

  • Loading branch information...
n-yoda committed Sep 16, 2016
1 parent bc9eeaf commit 1351a40fb338cc97b7649a2617b6ab644f81ddee
Showing with 4 additions and 0 deletions.
  1. +4 −0 CMakeLists.txt
View
@@ -114,6 +114,10 @@ if (NOT WIN32)
add_definitions(-fPIC)
endif()
if(APPLE AND NOT CMAKE_MACOSX_RPATH AND NOT DEFINED CMAKE_INSTALL_NAME_DIR)
set(CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
endif()
if (BUILD_TESTS)
# enable ctest targets
ENABLE_TESTING()

0 comments on commit 1351a40

Please sign in to comment.