Skip to content

Commit 14511e9

Browse files
committed
Default C++ is C++11.
1 parent e746f22 commit 14511e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ set(CMAKE_VERBOSE_MAKEFILE true)
1919

2020
if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
2121
INCLUDE(CheckCXXCompilerFlag)
22-
CHECK_CXX_COMPILER_FLAG(-std=c++14 HAVE_STD11)
22+
CHECK_CXX_COMPILER_FLAG(-std=c++11 HAVE_STD11)
2323

2424
if (HAVE_STD11)
25-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
25+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
2626
else()
27-
message(FATAL_ERROR "No C++ 11 support (Compiler does not define -std=c++14).")
27+
message(FATAL_ERROR "No C++ 11 support (Compiler does not define -std=c++11).")
2828
endif()
2929

3030
if (Uri_FULL_WARNINGS)

0 commit comments

Comments
 (0)