Skip to content

Commit

Permalink
🩹 make sure to use the install rpath for build
Browse files Browse the repository at this point in the history
this avoids codesign issues under macOS which does not allow to load libraries that have been tampered with, e.g., by modifying the rpath information during installation
  • Loading branch information
burgholzer committed Feb 8, 2024
1 parent 3fc180c commit edc95ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ if(MQT_CORE_INSTALL)
endif()
set(CMAKE_INSTALL_RPATH ${BASEPOINT} ${BASEPOINT}/${CMAKE_INSTALL_LIBDIR})
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
endif()

if(NOT TARGET project_warnings)
Expand Down

0 comments on commit edc95ed

Please sign in to comment.