Skip to content

Commit

Permalink
Enabled LC_RPATH for brew (openvinotoolkit#20587)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov authored Oct 19, 2023
1 parent 137c8e8 commit ad9a146
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions cmake/developer_package/packaging/common-libraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
#
Expand Down Expand Up @@ -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()

0 comments on commit ad9a146

Please sign in to comment.