fix: add search path on macos
This commit is contained in:
parent
f813e3b71e
commit
ae9bea025e
@ -93,6 +93,16 @@ if (WIN32)
|
|||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
set(CMAKE_MACOSX_RPATH 1)
|
set(CMAKE_MACOSX_RPATH 1)
|
||||||
set(CMAKE_INSTALL_RPATH "@loader_path/../lib")
|
set(CMAKE_INSTALL_RPATH "@loader_path/../lib")
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
/usr/local/include
|
||||||
|
/opt/homebrew/include
|
||||||
|
)
|
||||||
|
|
||||||
|
link_directories(
|
||||||
|
/usr/local/lib
|
||||||
|
/opt/homebrew/lib
|
||||||
|
)
|
||||||
else()
|
else()
|
||||||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
||||||
|
Loading…
Reference in New Issue
Block a user