diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4807364..ec5b78e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,6 @@ jobs: run: | cmake ${{ matrix.package }} \ -B ${{ matrix.package }}/build \ - -D CMAKE_CXX_FLAGS=-Werror \ -D BUILD_TESTING=ON - name: Check code formatting @@ -58,7 +57,6 @@ jobs: cmake ${{ matrix.package }} ` -B ${{ matrix.package }}/build ` -D CMAKE_CXX_COMPILER=cl ` - -D CMAKE_CXX_FLAGS=/WX ` -D BUILD_TESTING=ON - name: Build project diff --git a/error/CMakeLists.txt b/error/CMakeLists.txt index 730ae0a..3394841 100644 --- a/error/CMakeLists.txt +++ b/error/CMakeLists.txt @@ -3,9 +3,9 @@ cmake_minimum_required(VERSION 3.0) project(error) if(MSVC) - set(WARNING_FLAGS /permissive- /W4 /w14640 /EHsc) + set(WARNING_FLAGS /WX /permissive- /W4 /w14640 /EHsc) else() - set(WARNING_FLAGS -Wall -Wextra -Wnon-virtual-dtor -Wpedantic) + set(WARNING_FLAGS -Werror -Wall -Wextra -Wnon-virtual-dtor -Wpedantic) endif() include(cmake/CPM.cmake)