Skip to content

Commit

Permalink
Cocoa: Fix install name for installed dylib
Browse files Browse the repository at this point in the history
The install name was incorrectly set to a relative path.

This change leaves the install name of the installed dylib as
@rpath/soname.  Those who wish to override this can set the
CMAKE_INSTALL_NAME_DIR variable.

Closes #1504.
  • Loading branch information
aphecetche authored and elmindreda committed Jan 18, 2021
1 parent f8d6801 commit 384ff74
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,6 @@ if (BUILD_SHARED_LIBS)
endif()

target_compile_definitions(glfw INTERFACE GLFW_DLL)
elseif (APPLE)
set_target_properties(glfw PROPERTIES
INSTALL_NAME_DIR "${CMAKE_INSTALL_LIBDIR}")
endif()

if (MINGW)
Expand Down

0 comments on commit 384ff74

Please sign in to comment.