Skip to content

Commit

Permalink
Enable MACOSX_RPATH for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
da2ce7 committed Aug 25, 2016
1 parent 7e9b41c commit 8b1bfe2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ if(CYGWIN)
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
endif()

if(APPLE)
set(CMAKE_INSTALL_NAME_DIR @rpath)
endif()

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(Sodium REQUIRED)

Expand All @@ -34,6 +38,7 @@ file(GLOB cxx-headers

set(MODULE_NAME sodiumpp)


if(SODIUMPP_STATIC)
add_library(${MODULE_NAME} STATIC ${cxx-sources} ${cxx-headers})
else()
Expand Down

0 comments on commit 8b1bfe2

Please sign in to comment.