From ea55db3db86e0bb22ee7f8f7f2e1d1f644816ed5 Mon Sep 17 00:00:00 2001 From: Kangping Date: Wed, 2 Apr 2025 00:37:15 +0800 Subject: [PATCH] [github-actions] add `-DCMAKE_POLICY_VERSION_MINIMUM=3.5` to ot-commissioner build (#11384) Resolves: CMake Error at third_party/googletest/repo/CMakeLists.txt:4 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake. Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier. Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. --- .github/workflows/simulation-1.1.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/simulation-1.1.yml b/.github/workflows/simulation-1.1.yml index 23413987f..817d6df72 100644 --- a/.github/workflows/simulation-1.1.yml +++ b/.github/workflows/simulation-1.1.yml @@ -323,13 +323,14 @@ jobs: run: | cd /tmp/ot-commissioner script/bootstrap.sh - cmake -GNinja \ - -DCMAKE_CXX_STANDARD=11 \ - -DCMAKE_CXX_STANDARD_REQUIRED=ON \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr/local \ - -DOT_COMM_COVERAGE=ON \ - -DOT_COMM_CCM=OFF \ + cmake -GNinja \ + -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ + -DCMAKE_CXX_STANDARD=11 \ + -DCMAKE_CXX_STANDARD_REQUIRED=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr/local \ + -DOT_COMM_COVERAGE=ON \ + -DOT_COMM_CCM=OFF \ -S . -B build cmake --build build sudo cmake --install build