From a7a83130e41ccef55093d0e9567f5bb56583e034 Mon Sep 17 00:00:00 2001 From: Fergus Cooper <3770306+fcooper8472@users.noreply.github.com> Date: Fri, 7 Jun 2024 16:45:49 +0100 Subject: [PATCH] Remove boost --- .github/workflows/test_macos.yml | 4 ---- .github/workflows/test_ubuntu.yml | 5 ----- CMakeLists.txt | 3 +-- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/test_macos.yml b/.github/workflows/test_macos.yml index 9afa1f0..423d7f2 100644 --- a/.github/workflows/test_macos.yml +++ b/.github/workflows/test_macos.yml @@ -30,10 +30,6 @@ jobs: - name: checkout repo uses: actions/checkout@v4 - - name: install system packages - run: | - brew install boost gsl - - name: make directories run: | mkdir build_dir diff --git a/.github/workflows/test_ubuntu.yml b/.github/workflows/test_ubuntu.yml index 313daba..d7f2848 100644 --- a/.github/workflows/test_ubuntu.yml +++ b/.github/workflows/test_ubuntu.yml @@ -43,11 +43,6 @@ jobs: - name: checkout repo uses: actions/checkout@v4 - - name: install system packages - run: | - sudo apt -y update - sudo apt -y install libboost-dev libgsl-dev - - name: make directories run: | mkdir build_dir diff --git a/CMakeLists.txt b/CMakeLists.txt index 695c0f2..bda8d3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,6 @@ endif () message(STATUS "CMake build type is set to ${CMAKE_BUILD_TYPE}") # Find required dependencies -find_package(Boost REQUIRED) find_package(Threads REQUIRED) # Determine system architecture @@ -82,7 +81,7 @@ set(genie_lib_source add_library(genie_lib STATIC ${genie_lib_header} ${genie_lib_source}) target_include_directories(genie_lib INTERFACE include) -target_link_libraries(genie_lib PUBLIC Boost::headers Threads::Threads) +target_link_libraries(genie_lib PRIVATE Threads::Threads) IF (NOT HAVE_CLOCK_GETTIME) target_link_libraries(genie_lib PRIVATE rt) ENDIF ()