Skip to content

Commit

Permalink
Merge pull request #46 from jll63/fix/finding-boost-workaround
Browse files Browse the repository at this point in the history
Workaround on finding Boost
  • Loading branch information
jll63 authored Apr 26, 2024
2 parents 176d5b2 + 4e7cd31 commit fba65ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Find Boost dependency
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
include(cmake/find_or_download_package.cmake)
find_or_download_package(Boost INSTALL_WITH_YOMM)
find_package(Boost 1.74 QUIET)
if(NOT TARGET Boost::headers)
find_or_download_package(Boost INSTALL_WITH_YOMM)
endif()
message(STATUS "Using Boost libraries from ${Boost_INCLUDE_DIRS}")

if(NOT ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") AND (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang"))
Expand Down

0 comments on commit fba65ee

Please sign in to comment.