Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 038fdffe authored by SYLVAND Guillaume's avatar SYLVAND Guillaume Committed by Mathieu Faverge
Browse files

CmakeLists.txt: add INSTALL_NAME_DIR property for target hqr

Needed on macOS, otherwise at *execution* you get a message like:

dyld: Library not loaded: @rpath/libhqr.0.1.0.dylib
  Referenced from: ***your executable name here***
  Reason: image not found
Abort trap: 6
parent 5a7a3b60
Branches release/1.0.1
No related tags found
1 merge request!20CmakeLists.txt: add INSTALL_NAME_DIR property for target hqr
...@@ -55,6 +55,7 @@ set_target_properties(hqr PROPERTIES VERSION ${HQR_VERSION}) ...@@ -55,6 +55,7 @@ set_target_properties(hqr PROPERTIES VERSION ${HQR_VERSION})
target_include_directories(hqr PUBLIC target_include_directories(hqr PUBLIC
$<BUILD_INTERFACE:${HQR_SOURCE_DIR}/include> $<BUILD_INTERFACE:${HQR_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>) $<INSTALL_INTERFACE:include>)
set_property(TARGET hqr PROPERTY INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
# Users of our library will need the header defining the API # Users of our library will need the header defining the API
set_target_properties(hqr PROPERTIES PUBLIC_HEADER ${HQR_SOURCE_DIR}/include/libhqr.h) set_target_properties(hqr PROPERTIES PUBLIC_HEADER ${HQR_SOURCE_DIR}/include/libhqr.h)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment