aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/arg-router/always-depend-on-boost.patch
blob: 233443069ea92a1266037db8d15578eb5e1f0dad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2828e64..7b84de3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,6 +40,8 @@ endif()
 include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/build_types/documentation.cmake")
 
 set(BOOST_VERSION 1.74)
+find_package(Boost ${BOOST_VERSION} REQUIRED)
+
 if(NOT INSTALLATION_ONLY)
     include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/versioning/version.cmake")
     include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/copyright_checker.cmake")
@@ -48,8 +50,6 @@ if(NOT INSTALLATION_ONLY)
     include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/sanitizers.cmake")
     include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/ccache.cmake")
 
-    find_package(Boost ${BOOST_VERSION} REQUIRED)
-
     find_package(span-lite QUIET)
     if (NOT span-lite_FOUND)
         message(WARNING "span-lite package not found, you will need to compile against C++20 or higher")