4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-12 02:39:34 +00:00

also set the INSTALL_NAME_DIR for regular Mac libs

Failing to do so can cause linker/loader failures when installing
the QCA library to a non-standard location (e.g. the Qt install tree).
This commit is contained in:
R.J.V. Bertin 2019-06-08 16:18:03 +02:00
parent db5f82be2a
commit b614cdbd6e

@ -152,7 +152,7 @@ if(APPLE)
set(COREFOUNDATION_LIBRARY_SECURITY "-framework Security")
TARGET_LINK_LIBRARIES(${QCA_LIB_NAME} ${COREFOUNDATION_LIBRARY} ${COREFOUNDATION_LIBRARY_SECURITY})
if(OSX_FRAMEWORK AND NOT USE_RELATIVE_PATHS)
if(NOT USE_RELATIVE_PATHS)
set_target_properties(${QCA_LIB_NAME} PROPERTIES
INSTALL_NAME_DIR "${QCA_LIBRARY_INSTALL_DIR}"
)