fix: FetchContent_MakeAvailable() was introduced only in cmake 3.14

This commit is contained in:
Joao Paulo Magalhaes 2020-11-20 01:08:53 +00:00
parent bfa33b3ed1
commit 33b64cf0d3
3 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,11 @@
language: cpp
dist: bionic
addons:
snaps:
- name: cmake
confinement: classic
channel: 3.16/stable
arch:
- amd64

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.11 FATAL_ERROR)
cmake_minimum_required(VERSION 3.11)
project(fast_float VERSION 0.1.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)

View File

@ -1,3 +1,7 @@
# FetchContent_MakeAvailable() was only introduced in 3.14
# https://cmake.org/cmake/help/v3.14/release/3.14.html#modules
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
include(FetchContent)
FetchContent_Declare(doctest