From c4e2259c8fd1d973a06670918b5fccc1f1f64c64 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 8 Oct 2021 16:22:09 +0300 Subject: [PATCH] Move BoostInstall call inside the root project section --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea06f8a..a5bf281 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,11 +51,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) # Do not use the default BoostInstall versioned layout on Windows when standalone set(BOOST_INSTALL_LAYOUT "system" CACHE STRING "Installation layout (versioned, tagged, or system)") -endif() - -include(BoostInstall OPTIONAL RESULT_VARIABLE HAVE_BOOST_INSTALL) - -if(HAVE_BOOST_INSTALL) + include(BoostInstall) boost_install(TARGETS boost_mp11 HEADER_DIRECTORY include/)