We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 747657d commit 153a0dcCopy full SHA for 153a0dc
CMakeLists.txt
@@ -5,14 +5,15 @@ project(Algorithms_in_C++
5
DESCRIPTION "Set of algorithms implemented in C++."
6
)
7
8
-# set(CMAKE_CXX_CPPLINT "~/anaconda3/bin/cpplint --filter=-legal/copyright --std=c++11")
9
-# find_program(CLANG_FORMAT "clang-format")
10
-
+# C++ standard
11
set(CMAKE_CXX_STANDARD 17)
12
set(CMAKE_CXX_STANDARD_REQUIRED ON)
13
+
+# Additional warnings and errors
14
+set(EXTRA_COMPILE_FLAGS_CXX "-Wno-register -Werror=vla")
15
16
if(MSVC)
- # set(CMAKE_CXX_STANDARD 14)
17
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
18
endif(MSVC)
19
0 commit comments