diff --git a/externals/libfptu/src/erthink/cmake/compiler.cmake b/externals/libfptu/src/erthink/cmake/compiler.cmake index 8ad63d2c..c1bc1bcd 100644 --- a/externals/libfptu/src/erthink/cmake/compiler.cmake +++ b/externals/libfptu/src/erthink/cmake/compiler.cmake @@ -674,7 +674,7 @@ macro(setup_compile_flags) # Only add -Werror if it's a debug build, done by developers. # Release builds should not cause extra trouble. - if(CC_HAS_WERROR AND (CI OR CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE STREQUAL "Debug")) + if(CC_HAS_WERROR) if(MSVC) add_compile_flags("C;CXX" "/WX") elseif(CMAKE_COMPILER_IS_CLANG) diff --git a/externals/libmdbx/cmake/compiler.cmake b/externals/libmdbx/cmake/compiler.cmake index 22ed4024..fa56736a 100644 --- a/externals/libmdbx/cmake/compiler.cmake +++ b/externals/libmdbx/cmake/compiler.cmake @@ -676,7 +676,7 @@ macro(setup_compile_flags) # Only add -Werror if it's a debug build, done by developers. # Release builds should not cause extra trouble. - if(CC_HAS_WERROR AND (CI OR CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE STREQUAL "Debug")) + if(CC_HAS_WERROR) if(MSVC) add_compile_flags("C;CXX" "/WX") elseif(CMAKE_COMPILER_IS_CLANG)