cmake: prepend /opt/local to find path

This commit is contained in:
Davide Gerhard 2019-05-11 11:31:39 +02:00
parent b7071869d1
commit c9a95297d1
No known key found for this signature in database
GPG Key ID: 7CBEFA144857DC97
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ elseif(APPLE)
endif()
message(STATUS "Build for macOS target: ${CMAKE_OSX_DEPLOYMENT_TARGET}")
# prepend path to find_*()
set(CMAKE_FIND_ROOT_PATH "/opt/local")
set(CMAKE_MACOSX_RPATH ON)
message(STATUS "RPATH support: ${CMAKE_MACOSX_RPATH}")