macOS: fix errant rpath

This commit is contained in:
Jon Evans 2023-09-20 14:37:31 -04:00
parent 16324facaf
commit 0cf09fe374
1 changed files with 3 additions and 0 deletions

View File

@ -152,6 +152,9 @@ if( APPLE )
LIBRARY_OUTPUT_DIRECTORY "${OSX_BUNDLE_BUILD_LIB_DIR}"
INSTALL_NAME_DIR "${OSX_BUNDLE_BUILD_LIB_DIR}"
)
set_target_properties( kicommon PROPERTIES INSTALL_RPATH
"@executable_path/../Frameworks" )
set_target_properties( kicommon PROPERTIES BUILD_WITH_INSTALL_RPATH 1 )
endif()
target_compile_definitions( kicommon PRIVATE KICOMMON_DLL=1 )