diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1ac2de..ea05f05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,5 +19,7 @@ jobs: uses: actions/checkout@v2 - name: Build run: | - cd test - make + mkdir build + cd build + cmake .. + cmake --build . diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5c40e58..f6760b8 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -14,7 +14,7 @@ set_target_properties(clar_test PROPERTIES ) # MSVC generates all kinds of warnings. -if(NOT "${CMAKEC_COMPILER_ID}" MATCHES "MSVC") +if (NOT MSVC) set_target_properties(clar_test PROPERTIES COMPILE_WARNING_AS_ERROR ON )