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..3441c29 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -13,8 +13,9 @@ set_target_properties(clar_test PROPERTIES C_EXTENSIONS OFF ) -# MSVC generates all kinds of warnings. -if(NOT "${CMAKEC_COMPILER_ID}" MATCHES "MSVC") +# MSVC generates all kinds of warnings. We may want to fix these in the future +# and then unconditionally treat warnings as errors. +if (NOT MSVC) set_target_properties(clar_test PROPERTIES COMPILE_WARNING_AS_ERROR ON )