Skip to content

Commit 4563a74

Browse files
Try setting Cmake's INSTALL_NAME_DIR
1 parent 102c0ad commit 4563a74

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/generic_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: mkdir ${{github.workspace}}/build
3636

3737
- name: Configure CMake
38-
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ inputs.build }} -DFCL_TREAT_WARNINGS_AS_ERRORS=ON -DFCL_COVERALLS=OFF -DCMAKE_MACOSX_RPATH=/usr/lib
38+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ inputs.build }} -DFCL_TREAT_WARNINGS_AS_ERRORS=ON -DFCL_COVERALLS=OFF -DCMAKE_INSTALL_NAME_DIR=/usr/local/lib
3939

4040
- name: Build
4141
run: cmake --build build -j2

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
5454
VERSION ${FCL_VERSION}
5555
SOVERSION ${FCL_ABI_VERSION})
5656

57+
if (not UNIX)
58+
set_target_properties(${PROJECT_NAME} PROPERTIES
59+
INSTALL_NAME_DIR "@rpath")
60+
endif()
61+
5762
# Hide symbols by default
5863
#################################################
5964
# Macro to check for visibility capability in compiler

0 commit comments

Comments
 (0)