From b0888403aa38220412a7159ce07a8e523457746c Mon Sep 17 00:00:00 2001 From: Yura Sorokin Date: Mon, 30 Oct 2023 20:03:27 +0100 Subject: [PATCH] Enabled CMake warnings in GitHub Workflows (#23) In Github Workflows scripts 'BOOST_ROOT' CMake define changed toto 'Boost_ROOT' to get rid of the 'CMP0144' policy warning. --- .github/workflows/cmake.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 13fc533..5b52e5b 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -127,13 +127,13 @@ jobs: # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type run: | - cmake \ + cmake -Wdev -Werror=dev -Wdeprecated -Werror=deprecated \ -B ${{github.workspace}}/../build-${{matrix.config.label}} \ -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} \ -DCMAKE_C_COMPILER=${{matrix.config.cc}} \ -DCMAKE_CXX_COMPILER=${{matrix.config.cxx}} \ ${{matrix.config.libcxx_cmake_flags}} \ - -DBOOST_ROOT=${{runner.temp}}/deps/${{format('boost_{0}_{1}_{2}', env.BOOST_MAJOR, env.BOOST_MINOR, env.BOOST_PATCH)}} \ + -DBoost_ROOT=${{runner.temp}}/deps/${{format('boost_{0}_{1}_{2}', env.BOOST_MAJOR, env.BOOST_MINOR, env.BOOST_PATCH)}} \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - name: CMake info