Skip to content

Commit

Permalink
simpler boost detection on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Debacker committed Feb 3, 2023
1 parent edc3b2a commit 098160b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sparta/cmake/sparta-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@ endif ()


if (APPLE AND NOT USING_CONDA)
set (Boost_NO_BOOST_CMAKE ON)
set (CMAKE_CXX_COMPILER_VERSION 10.0)
find_package (Boost 1.65.0 REQUIRED HINTS /usr/local/Cellar/boost/* COMPONENTS ${_BOOST_COMPONENTS})
else ()
find_package (Boost 1.65.0 REQUIRED COMPONENTS ${_BOOST_COMPONENTS})
endif ()

find_package (Boost 1.65.0 REQUIRED COMPONENTS ${_BOOST_COMPONENTS})

set (BUILD_SHARED_LIBS ${existing_build_shared})
message (STATUS "Using BOOST ${Boost_VERSION_STRING}")

Expand Down

0 comments on commit 098160b

Please sign in to comment.