We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 176d5b2 + 4e7cd31 commit fba65eeCopy full SHA for fba65ee
CMakeLists.txt
@@ -15,7 +15,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
15
# Find Boost dependency
16
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
17
include(cmake/find_or_download_package.cmake)
18
-find_or_download_package(Boost INSTALL_WITH_YOMM)
+find_package(Boost 1.74 QUIET)
19
+if(NOT TARGET Boost::headers)
20
+ find_or_download_package(Boost INSTALL_WITH_YOMM)
21
+endif()
22
message(STATUS "Using Boost libraries from ${Boost_INCLUDE_DIRS}")
23
24
if(NOT ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") AND (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang"))
0 commit comments