File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ if (POLICY CMP0144)
2121 cmake_policy (SET CMP0144 NEW )
2222endif ()
2323
24+ # This policy is designed to force a choice between the old behavior of an integrated FindBoost implementation
25+ # and the implementation provided in by boost.
26+ if (POLICY CMP0167)
27+ # Uses the BoostConfig.cmake included with the boost distribution.
28+ cmake_policy (SET CMP0167 NEW )
29+ endif ()
30+
31+
2432option (BUILD_TESTING "Top-level switch for testing. Turn off to disable unit and contract tests." ON )
2533
2634option (LD_BUILD_SHARED_LIBS "Build the SDKs as shared libraries" OFF )
Original file line number Diff line number Diff line change @@ -8,6 +8,13 @@ if (NOT DEFINED Boost_USE_STATIC_LIBS)
88 endif ()
99endif ()
1010
11+ # This policy is designed to force a choice between the old behavior of an integrated FindBoost implementation
12+ # and the implementation provided in by boost.
13+ if (POLICY CMP0167)
14+ # Uses the BoostConfig.cmake included with the boost distribution.
15+ cmake_policy (SET CMP0167 NEW )
16+ endif ()
17+
1118find_dependency (Boost 1.81 COMPONENTS json url coroutine )
1219find_dependency (OpenSSL )
1320find_dependency (tl-expected )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ FetchContent_Declare(timestamp
55
66FetchContent_GetProperties (timestamp)
77if (NOT timestamp_POPULATED)
8- FetchContent_Populate (timestamp)
8+ FetchContent_MakeAvailable (timestamp)
99endif ()
1010
1111add_library (timestamp OBJECT
Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ cmake_minimum_required(VERSION 3.13)
1111
1212set (foxy_minimum_boost_version 1.75)
1313
14+ # This policy is designed to force a choice between the old behavior of an integrated FindBoost implementation
15+ # and the implementation provided in by boost.
16+ if (POLICY CMP0167)
17+ # Uses the BoostConfig.cmake included with the boost distribution.
18+ cmake_policy (SET CMP0167 NEW )
19+ endif ()
20+
1421project (
1522 foxy
1623
You can’t perform that action at this time.
0 commit comments