File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ if(BOOST_USE_STATIC)
1515 set (Boost_USE_STATIC_LIBS ON ) # cmake-lint: disable=C0103
1616endif ()
1717
18+ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.30" )
19+ cmake_policy (SET CMP0167 NEW)
20+ endif ()
1821find_package (Boost CONFIG ${BOOST_VERSION} COMPONENTS ${BOOST_COMPONENTS} )
1922if (NOT Boost_FOUND)
2023 message (STATUS "Boost v${BOOST_VERSION} .x package not found in the system. Falling back to FetchContent." )
@@ -24,6 +27,9 @@ if(NOT Boost_FOUND)
2427 if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0" )
2528 cmake_policy (SET CMP0135 NEW)
2629 endif ()
30+ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.31.0" )
31+ cmake_policy (SET CMP0174 NEW)
32+ endif ()
2733
2834 # more components required for compiling boost targets
2935 list (APPEND BOOST_COMPONENTS
Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ if(NOT nlohmann_json_FOUND)
88 message (STATUS "nlohmann_json v3.11.x package not found in the system. Falling back to FetchContent." )
99 include (FetchContent)
1010
11+ # Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24:
12+ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0" )
13+ cmake_policy (SET CMP0135 NEW)
14+ endif ()
15+ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.31.0" )
16+ cmake_policy (SET CMP0174 NEW)
17+ endif ()
18+
1119 FetchContent_Declare(
1220 json
1321 URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.0 )
1+ cmake_minimum_required (VERSION 3.20 )
22
33project (sunshine_tools)
44
You can’t perform that action at this time.
0 commit comments