Enabled LC_RPATH for brew (#20587)
This commit is contained in:
@@ -4,14 +4,6 @@
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
if(CPACK_GENERATOR STREQUAL "BREW")
|
||||
# brew relies on RPATHs
|
||||
# set(CMAKE_SKIP_INSTALL_RPATH OFF)
|
||||
else()
|
||||
# we don't need RPATHs, because libraries are searched by standard paths
|
||||
set(CMAKE_SKIP_INSTALL_RPATH ON)
|
||||
endif()
|
||||
|
||||
#
|
||||
# ov_common_libraries_cpack_set_dirs()
|
||||
#
|
||||
@@ -115,3 +107,12 @@ macro(ov_define_component_include_rules)
|
||||
endmacro()
|
||||
|
||||
ov_define_component_include_rules()
|
||||
|
||||
if(CPACK_GENERATOR STREQUAL "BREW")
|
||||
# brew relies on RPATHs
|
||||
set(CMAKE_SKIP_INSTALL_RPATH OFF)
|
||||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${OV_CPACK_LIBRARYDIR}")
|
||||
else()
|
||||
# we don't need RPATHs, because libraries are searched by standard paths
|
||||
set(CMAKE_SKIP_INSTALL_RPATH ON)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user