Skip to content

Commit

Permalink
fix cmake: forward options to downloaded userver (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton3 authored Jan 29, 2025
1 parent 9c3ff28 commit d1f946d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.12...3.31)
project(service_template CXX)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
Expand Down
2 changes: 2 additions & 0 deletions cmake/DownloadUserver.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ function(download_userver)
endif()
endif()

# CMP0077 and CMP0126 are required for correct option forwarding.
cmake_minimum_required(VERSION 3.21)
include(get_cpm)

if(NOT DEFINED ARG_VERSION AND NOT DEFINED ARG_GIT_TAG)
Expand Down

0 comments on commit d1f946d

Please sign in to comment.