Merge pull request #4444 from mapnik/feature/increase_min_cxx_standard
Increase min cxx standard to 17
This commit is contained in:
commit
a85bc95135
2 changed files with 1 additions and 5 deletions
4
.github/workflows/build_and_test.yml
vendored
4
.github/workflows/build_and_test.yml
vendored
|
@ -29,15 +29,11 @@ jobs:
|
||||||
Build & Test
|
Build & Test
|
||||||
(${{ matrix.os }})
|
(${{ matrix.os }})
|
||||||
(C++ ${{ matrix.cxx-standard }})
|
(C++ ${{ matrix.cxx-standard }})
|
||||||
${{ matrix.memory-mapped == 'OFF' && '(USE_MEMORY_MAPPED_FILE=OFF)' || '' }}
|
|
||||||
${{ matrix.static-build == 'OFF' && '(BUILD_SHARED_LIBS=OFF)' || '' }}
|
|
||||||
needs: checkSource
|
needs: checkSource
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, windows-latest, ubuntu-latest]
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
||||||
memory-mapped: ["ON"]
|
|
||||||
static-build: ["OFF"]
|
|
||||||
cxx-standard: [17]
|
cxx-standard: [17]
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
|
|
|
@ -126,7 +126,7 @@ set(MAPNIK_OPTIONAL_LIBS_INCLUDE "")
|
||||||
#############################
|
#############################
|
||||||
#############################
|
#############################
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 14 CACHE STRING "Sets the c++ standard. c++14 is minimum.")
|
set(CMAKE_CXX_STANDARD 17 CACHE STRING "Sets the c++ standard. c++17 is minimum.")
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON) # require the specified CMAKE_CXX_STANDARD
|
set(CMAKE_CXX_STANDARD_REQUIRED ON) # require the specified CMAKE_CXX_STANDARD
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF CACHE STRING "Enables the compiler specific extensions.") # Fallsback to -std=c++<ver> if off
|
set(CMAKE_CXX_EXTENSIONS OFF CACHE STRING "Enables the compiler specific extensions.") # Fallsback to -std=c++<ver> if off
|
||||||
message(STATUS "Using c++${CMAKE_CXX_STANDARD}")
|
message(STATUS "Using c++${CMAKE_CXX_STANDARD}")
|
||||||
|
|
Loading…
Reference in a new issue