From 485e0a5f1643579511aa1102e533c52146fc8d7a Mon Sep 17 00:00:00 2001 From: Philipp Basler Date: Sun, 2 Jun 2024 00:52:35 +0200 Subject: [PATCH] try conan provider file for gflags on windows --- .github/workflows/windows_unit_tests.yml | 2 +- conanfile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows_unit_tests.yml b/.github/workflows/windows_unit_tests.yml index 8d85c8ae..b4d131ee 100644 --- a/.github/workflows/windows_unit_tests.yml +++ b/.github/workflows/windows_unit_tests.yml @@ -30,7 +30,7 @@ jobs: uses: SimenB/github-actions-cpu-cores@v1 id: cpu-cores - name: cmake - run: cmake -S . -B build -DLIBCMAES_BUILD_PYTHON=On -DLIBCMAES_BUILD_TESTS=On -DLIBCMAES_USE_OPENMP=On -DCMAKE_BUILD_TYPE=Release + run: cmake -S . -B build -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=cmake/conan_provider.cmake -DLIBCMAES_BUILD_PYTHON=On -DLIBCMAES_BUILD_TESTS=On -DLIBCMAES_USE_OPENMP=On -DCMAKE_BUILD_TYPE=Release - name: compile run: cd build && cmake --build . -j${{ steps.cpu-cores.outputs.count }} --config Release - name: Run ctest diff --git a/conanfile.py b/conanfile.py index 94539325..19369bbf 100644 --- a/conanfile.py +++ b/conanfile.py @@ -40,7 +40,7 @@ class CmaesConan(ConanFile): ) def build_requirements(self): - pass + self.test_requires("gflags/2.2.2") def requirements(self): self.requires("eigen/3.4.0", transitive_headers=True)