Remove INSTALL_NAME_DIR prop on Mac which gets in the way of proper RPATH handling ?

This commit is contained in:
Laurent Aphecetche 2019-06-14 16:42:50 +02:00
parent d834f01ca4
commit e7c014fffe

View File

@ -137,9 +137,6 @@ if (BUILD_SHARED_LIBS)
elseif (APPLE)
# Add -fno-common to work around a bug in Apple's GCC
target_compile_options(glfw PRIVATE "-fno-common")
set_target_properties(glfw PROPERTIES
INSTALL_NAME_DIR "${CMAKE_INSTALL_LIBDIR}")
elseif (UNIX)
# Hide symbols not explicitly tagged for export from the shared library
target_compile_options(glfw PRIVATE "-fvisibility=hidden")