Skip to content

Commit d85b863

Browse files
togesparkprime
authored andcommitted
fix CMAKE_CXX_FLAGS
1 parent f4b2b82 commit d85b863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang" OR
3737
${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
3838
set(OPT "-O3")
3939
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -Wextra -pedantic -std=c99 -O3 ${OPT}")
40-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++11 -fPIC ${OPT}")
40+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++17 -fPIC ${OPT}")
4141
else()
4242
# TODO: Windows support.
4343
message(FATAL_ERROR "Compiler ${CMAKE_CXX_COMPILER_ID} not supported")

0 commit comments

Comments
 (0)