From 56b6c44477bb6ae2ec2fee829597957d238d0286 Mon Sep 17 00:00:00 2001 From: asadchev Date: Wed, 6 Jan 2021 12:46:49 -0500 Subject: [PATCH] Fix CMake Boost discovery --- cmake/modules/FindOrFetchBoost.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmake/modules/FindOrFetchBoost.cmake b/cmake/modules/FindOrFetchBoost.cmake index 6bb749e9f5..7c82b4f736 100644 --- a/cmake/modules/FindOrFetchBoost.cmake +++ b/cmake/modules/FindOrFetchBoost.cmake @@ -4,11 +4,10 @@ if (BOOST_ROOT OR BOOST_INCLUDEDIR) endif() # Check for Boost -# - require version 1.68 where Boost.Test preconditions work correctly (see https://svn.boost.org/trac10/ticket/12095) -find_package(Boost ${TA_TRACKED_BOOST_VERSION} QUIET CONFIG) +find_package(Boost ${TA_TRACKED_BOOST_VERSION} QUIET) if (TARGET Boost::boost) - message(STATUS "Found Boost CONFIG at ${Boost_CONFIG}") + message(STATUS "Found Boost ${Boost_VERSION}: ${Boost_INCLUDE_DIRS}") else (TARGET Boost::boost) include (FetchContent) cmake_minimum_required (VERSION 3.14.0) # for FetchContent_MakeAvailable