mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-19 19:52:15 +02:00
Switch builds to c++17 standard
We want to use features only present with c++17. Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
This commit is contained in:
parent
3a5d0f710c
commit
18f3ae7c25
@ -238,7 +238,7 @@ Build and run tests on Linux:
|
||||
Developer Guide
|
||||
---------------
|
||||
|
||||
OpenVPN 3 is written in C++11 and developers who are moving
|
||||
OpenVPN 3 is written in C++17 and developers who are moving
|
||||
from C to C++ should take some time to familiarize themselves with
|
||||
key C++ design patterns such as *RAII*:
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
#cmake_policy(SET CMP0079 NEW)
|
||||
|
||||
|
@ -3,7 +3,7 @@ export JAVA_DIR=/usr/lib/jvm/java-7-openjdk-amd64
|
||||
export PLATFORM=linux
|
||||
export DEBUG_BUILD=0
|
||||
export OTHER_COMPILER_FLAGS="-Wno-unused-local-typedefs -Wno-unused-variable -Wno-shift-count-overflow -pthread"
|
||||
export CXX_COMPILER_FLAGS="-std=c++14"
|
||||
export CXX_COMPILER_FLAGS="-std=c++17"
|
||||
export LIB_OPT_LEVEL="-O3"
|
||||
export LIB_FPIC="-fPIC"
|
||||
export GPP_CMD=g++
|
||||
|
Loading…
Reference in New Issue
Block a user