mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 08:46:49 +08:00
fix: FetchContent_MakeAvailable() was introduced only in cmake 3.14
This commit is contained in:
parent
bfa33b3ed1
commit
33b64cf0d3
@ -1,6 +1,11 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
|
|
||||||
dist: bionic
|
dist: bionic
|
||||||
|
addons:
|
||||||
|
snaps:
|
||||||
|
- name: cmake
|
||||||
|
confinement: classic
|
||||||
|
channel: 3.16/stable
|
||||||
|
|
||||||
arch:
|
arch:
|
||||||
- amd64
|
- amd64
|
||||||
|
|||||||
@ -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)
|
project(fast_float VERSION 0.1.0 LANGUAGES CXX)
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
|||||||
@ -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)
|
include(FetchContent)
|
||||||
|
|
||||||
FetchContent_Declare(doctest
|
FetchContent_Declare(doctest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user