diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2071a9ed..ac0a5dc5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -762,7 +762,7 @@ jobs: -B build -DCMAKE_BUILD_TYPE="${{env.cmake_buildtype}}" -DCMAKE_PREFIX_PATH="${{env.prefix_path}}/lib/cmake" - -DBUILD_WERROR=OFF + -DBUILD_WERROR=ON -DUSE_BUNDLE=ON -DENABLE_DBUS=OFF -DICU_ROOT="${{env.prefix_path}}" @@ -902,7 +902,7 @@ jobs: -B build -DCMAKE_BUILD_TYPE="${{env.cmake_buildtype}}" -DCMAKE_PREFIX_PATH="${{env.prefix_path}}/lib/cmake" - -DBUILD_WERROR=OFF + -DBUILD_WERROR=ON -DUSE_BUNDLE=ON -DENABLE_DBUS=OFF -DICU_ROOT="${{env.prefix_path}}" @@ -1000,7 +1000,7 @@ jobs: -DCMAKE_TOOLCHAIN_FILE="../cmake/Toolchain-${{matrix.arch}}-w64-mingw32-shared.cmake" -DCMAKE_BUILD_TYPE="${{env.cmake_buildtype}}" -DCMAKE_PREFIX_PATH="/strawberry-mxe/usr/${{matrix.arch}}-w64-mingw32.shared/qt6" - -DBUILD_WERROR=OFF + -DBUILD_WERROR=ON -DARCH="${{matrix.arch}}" -DENABLE_WIN32_CONSOLE=$(test "${{matrix.buildtype}}" = "debug" && echo "ON" || echo "OFF") -DENABLE_DBUS=OFF diff --git a/CMakeLists.txt b/CMakeLists.txt index 12c2a958..d20245c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,7 +74,7 @@ else() $<$:-Woverloaded-virtual> $<$:-Wold-style-cast> ) - option(BUILD_WERROR "Build with -Werror" OFF) + option(BUILD_WERROR "Build with -Werror" ON) if(BUILD_WERROR) list(APPEND COMPILE_OPTIONS -Werror) endif()