From 9c4df73ef4498c58ebf7bc25c318227d14db42b4 Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Thu, 5 Dec 2019 04:32:01 +0000 Subject: [PATCH] Force Boost_NO_BOOST_CMAKE. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 785b3aab66..7238ab16b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -474,6 +474,12 @@ set(Boost_ADDITIONAL_VERSIONS "1.51.1" "1.51.0" "1.51" "1.50.1" "1.50.0" "1.50" "1.49.1" "1.49.0" "1.49") +# Disable forced config-mode CMake search for Boost, which only imports targets +# and does not set the variables that we need. +# +# TODO for the brave: transition all mlpack's CMake to 'target-based modern +# CMake'. Good luck! You'll need it. +set(Boost_NO_BOOST_CMAKE 1) find_package(Boost 1.49 COMPONENTS program_options