Defaulting to C++17 for building.

This commit is contained in:
Christian Parpart
2019-08-13 16:19:18 +02:00
committed by Daniel Kirchner
parent bd105ad4b1
commit e91c6acbc3
10 changed files with 24 additions and 27 deletions
+2 -2
View File
@@ -15,9 +15,9 @@ set(JSONCPP_INCLUDE_DIR "${prefix}/include")
# versions used in the CI runs.
if(EMSCRIPTEN)
# Do not include all flags in CMAKE_CXX_FLAGS for emscripten,
# but only use -std=c++14. Using all flags causes build failures
# but only use -std=c++17. Using all flags causes build failures
# at the moment.
set(JSONCPP_CXX_FLAGS -std=c++14)
set(JSONCPP_CXX_FLAGS -std=c++17)
else()
set(JSONCPP_CXX_FLAGS ${CMAKE_CXX_FLAGS})
endif()