Skip to content

Commit f017f34

Browse files
authored
fix cmake: forward options to downloaded userver (#71)
1 parent 5460e2f commit f017f34

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.12)
1+
cmake_minimum_required(VERSION 3.12...3.31)
22
project(service_template CXX)
33

44
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

cmake/DownloadUserver.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ function(download_userver)
1717
endif()
1818
endif()
1919

20+
# CMP0077 and CMP0126 are required for correct option forwarding.
21+
cmake_minimum_required(VERSION 3.21)
2022
include(get_cpm)
2123

2224
if(NOT DEFINED ARG_VERSION AND NOT DEFINED ARG_GIT_TAG)

0 commit comments

Comments
 (0)