We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c1981c9 + c0f2260 commit 683aeacCopy full SHA for 683aeac
1 file changed
CMakeLists.txt
@@ -7,7 +7,13 @@ include(CheckLibraryExists)
7
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/")
8
9
add_definitions(-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64)
10
-add_compile_options(-O -Wall -Werror --std=gnu99)
+add_compile_options(-O -Wall --std=gnu99)
11
+
12
+option(BUILD_WERROR "Build with -Werror" ON)
13
14
+if(BUILD_WERROR)
15
+ add_compile_options(-Werror)
16
+endif()
17
18
option(BUILD_STATIC "Build static library" OFF)
19
0 commit comments