1
0
mirror of synced 2024-12-22 12:40:00 +01:00

chore: drop 3.11-3.13 for extended-example

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner 2022-10-31 23:38:12 -04:00
parent f3d5b5a8d8
commit 50cb4690b8
No known key found for this signature in database
GPG Key ID: B9D0E45146A241E8
2 changed files with 3 additions and 13 deletions

View File

@ -1,5 +1,5 @@
# Works with 3.11 and tested through 3.24 # Works with 3.14 and tested through 3.24
cmake_minimum_required(VERSION 3.11...3.24) cmake_minimum_required(VERSION 3.14...3.24)
# Project name and a few useful settings. Other commands can pick up the results # Project name and a few useful settings. Other commands can pick up the results
project( project(
@ -35,11 +35,8 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
endif() endif()
# FetchContent added in CMake 3.11, downloads during the configure step # FetchContent added in CMake 3.11, downloads during the configure step
# FetchContent_MakeAvailable was added in CMake 3.14; simpler usage
include(FetchContent) include(FetchContent)
# FetchContent_MakeAvailable was not added until CMake 3.14; use our shim
if(${CMAKE_VERSION} VERSION_LESS 3.14)
include(cmake/add_FetchContent_MakeAvailable.cmake)
endif()
# Accumulator library # Accumulator library
# This is header only, so could be replaced with git submodules or FetchContent # This is header only, so could be replaced with git submodules or FetchContent

View File

@ -1,7 +0,0 @@
macro(FetchContent_MakeAvailable NAME)
FetchContent_GetProperties(${NAME})
if(NOT ${NAME}_POPULATED)
FetchContent_Populate(${NAME})
add_subdirectory(${${NAME}_SOURCE_DIR} ${${NAME}_BINARY_DIR})
endif()
endmacro()