From 78b3e4d31c4802f04c10f3a8701cebca2d2ea227 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Wed, 6 Sep 2023 09:23:58 -0400 Subject: [PATCH] Fixing issue 501 --- .github/workflows/macos-ci.yml | 9 +++++++++ CMakeLists.txt | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/macos-ci.yml b/.github/workflows/macos-ci.yml index b1a7067fa..c97c5160f 100644 --- a/.github/workflows/macos-ci.yml +++ b/.github/workflows/macos-ci.yml @@ -22,6 +22,15 @@ jobs: ctest . --output-on-failure cmake --install . cd ../tests/installation/find && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination .. && cmake --build . + - name: Build and Test (shared) + run: | + cmake -DBUILD_SHARED_LIBS=ON -B buildshared -DCMAKE_INSTALL_PREFIX:PATH=destinationshared + cmake --build buildshared + cmake --install buildshared + cd tests/installation/find + cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../destinationshared -B buildshared + cmake --build buildshared + ./buildshared/repro - name: Build and Test Debug run: | mkdir builddebug diff --git a/CMakeLists.txt b/CMakeLists.txt index 0bc46919e..7a07c9d87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,6 @@ project(RoaringBitmap ) include(GNUInstallDirs) -set(CMAKE_MACOSX_RPATH OFF) if (NOT CMAKE_BUILD_TYPE) message(STATUS "No build type selected, default to Release") set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)