Skip to content

Commit

Permalink
cmake: Fix rpath on MacOS (#2831)
Browse files Browse the repository at this point in the history
Without this change, baresip does not run and complains about not finding libbaresip.dylib in /usr/local/openssl/lib (which is the wrong location for it)
  • Loading branch information
larsimmisch committed Dec 14, 2023
1 parent b170802 commit d46df52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_EXTENSIONS OFF)

set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")

if(MSVC)
add_compile_options("/W3")
else()
Expand Down

0 comments on commit d46df52

Please sign in to comment.