Skip to content

Commit 03d046a

Browse files
committed
Fixed CMakeLists.
1 parent 709eb4d commit 03d046a

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,7 +17,6 @@ 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)
2120
# Set default compile flags for the project
2221
if(MSVC)
2322
# Don't always use Wall, since VC's /Wall is ridiculously verbose.
@@ -32,6 +31,8 @@ if (NOT CMAKE_CXX_FLAGS)
3231
set(CMAKE_CXX_FLAGS "-Wall")
3332
endif()
3433
endif()
34+
# Use c++17
35+
set(CMAKE_CXX_STANDARD 17)
3536

3637
# Set output directories
3738
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)

0 commit comments

Comments
 (0)