Initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -171,9 +171,7 @@ if(${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)")
|
||||
-fno-builtin-memcmp)
|
||||
|
||||
# Treat warnings as errors for versions of GCC and c++11-compliant Clang versions that are shipped on Ubuntu 18.04 or older.
|
||||
- if(BUILD_WERROR OR
|
||||
- (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 7.3.0) OR
|
||||
- (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 6.0.0))
|
||||
+ if(BUILD_WERROR)
|
||||
add_compile_options(-Werror)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user