diff --git a/CMakeLists.txt b/CMakeLists.txt index f96148567da..bbad8b3b223 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -448,12 +448,7 @@ else() link_libraries(global-group) endif () -if (NOT (OS_LINUX OR OS_DARWIN)) - # Using system libs can cause a lot of warnings in includes (on macro expansion). - option(WERROR "Enable -Werror compiler option" OFF) -else () - option(WERROR "Enable -Werror compiler option" ON) -endif () +option(WERROR "Enable -Werror compiler option" ON) if (WERROR) # Don't pollute CMAKE_CXX_FLAGS with -Werror as it will break some CMake checks.