Skip to content

Commit 4430b91

Browse files
committed
Set to use C++17.
1 parent b17427f commit 4430b91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ set(RDKAFKA_MIN_VERSION "0.9.4")
1717
set(RDKAFKA_MIN_VERSION_HEX 0x00090400)
1818

1919
if (NOT CMAKE_CXX_FLAGS)
20+
set(CMAKE_CXX_STANDARD 17)
2021
# Set default compile flags for the project
2122
if(MSVC)
2223
# Don't always use Wall, since VC's /Wall is ridiculously verbose.
@@ -28,7 +29,7 @@ if (NOT CMAKE_CXX_FLAGS)
2829
add_definitions("-DNOGDI=1")
2930
add_definitions("-DNOMINMAX=1")
3031
else()
31-
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall")
32+
set(CMAKE_CXX_FLAGS "-Wall")
3233
endif()
3334
endif()
3435

0 commit comments

Comments
 (0)