Skip to content

Commit

Permalink
Compile without -Werror when compiling with clang
Browse files Browse the repository at this point in the history
clang currently prints a lot of warnings that will be fixed in
subsequent commits
  • Loading branch information
velichkov authored and andrepuschmann committed Dec 12, 2019
1 parent 52ce1fb commit f3cdee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ if("Ninja" STREQUAL ${CMAKE_GENERATOR})
endif()

# Add -Werror to C/C++ flags for newer compilers
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9 AND NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
endif()
Expand Down

0 comments on commit f3cdee4

Please sign in to comment.