Skip to content

Commit b435738

Browse files
committed
CMake (macOS): corrects rpath addition for dlopen builds
1 parent 934905e commit b435738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ endif()
13481348

13491349
# Used for dlopen finding dylibs installed by homebrew
13501350
# `/opt/homebrew/lib` is not on in dlopen search path by default
1351-
if(APPLE AND NOT BINARY_LINK_TYPE STREQUAL "dlopen")
1351+
if(APPLE AND BINARY_LINK_TYPE STREQUAL "dlopen")
13521352
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,/opt/homebrew/lib -Wl,-rpath,/usr/local/lib")
13531353
endif()
13541354

0 commit comments

Comments
 (0)