diff --git a/CMakeLists.txt b/CMakeLists.txt index 469e89033..6022a4797 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,10 +53,8 @@ endif() set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_C_STANDARD 11) -list(FIND CMAKE_C_IMPLICIT_LINK_DIRECTORIES - "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" IS_SYSTEM_DIR) -if(IS_SYSTEM_DIR STREQUAL "-1") - set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}") +if(APPLE) + set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) endif()