|
1 | 1 | cmake_minimum_required(VERSION 3.24.0 FATAL_ERROR) |
2 | | -set(CMAKE_CXX_STANDARD 17) |
3 | | -set(CMAKE_CXX_STANDARD_REQUIREDON) |
| 2 | + |
| 3 | +if(POLICY CMP0177) |
| 4 | + cmake_policy(SET CMP0177 NEW) |
| 5 | +endif() |
4 | 6 |
|
5 | 7 | set(CMAKE_CXX_STANDARD 17) |
6 | 8 | set(CMAKE_CXX_STANDARD_REQUIREDON) |
@@ -128,6 +130,14 @@ if(NOT libcurl_POPULATED) |
128 | 130 | set(CURL_USE_OPENSSLOFFCACHEBOOL"") |
129 | 131 | set(SSH2CURL_USE_LIBOFFCACHEBOOL"") |
130 | 132 | set(CURL_USE_LIBSSH2OFFCACHEBOOL"") |
| 133 | + set(CMAKE_DISABLE_FIND_PACKAGE_PerlONCACHEBOOL"" FORCE) |
| 134 | + set(CMAKE_DISABLE_FIND_PACKAGE_ZLIBONCACHEBOOL"" FORCE) |
| 135 | + set(CMAKE_DISABLE_FIND_PACKAGE_LibPSLONCACHEBOOL"" FORCE) |
| 136 | + set(USE_LIBIDN2OFFCACHEBOOL"" FORCE) |
| 137 | + set(USE_LIBPSLOFFCACHEBOOL"" FORCE) |
| 138 | + set(CURL_ZLIBOFFCACHEBOOL"" FORCE) |
| 139 | + set(CMAKE_USE_SCHANNELONCACHEBOOL"" FORCE) |
| 140 | + |
131 | 141 | FetchContent_Populate(libcurl) |
132 | 142 | add_subdirectory(${libcurl_SOURCE_DIR}${libcurl_BINARY_DIR}EXCLUDE_FROM_ALL) |
133 | 143 | endif() |
|