From aacdf6770b40c6fe9908df3655582109e4c13f67 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 17 Feb 2024 22:47:46 +0100 Subject: [PATCH] build(conan): `can_run` check added before running tests --- conanfile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conanfile.py b/conanfile.py index d197ad3d..00639cc0 100644 --- a/conanfile.py +++ b/conanfile.py @@ -25,7 +25,7 @@ import re from conan import ConanFile from conan.errors import ConanInvalidConfiguration -from conan.tools.build import check_min_cppstd +from conan.tools.build import can_run, check_min_cppstd from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout from conan.tools.files import copy, load, rmdir @@ -167,7 +167,8 @@ class MPUnitsConan(ConanFile): cmake.build() if self._build_all: cmake.build(target="all_verify_interface_header_sets") - cmake.test() + if can_run(self): + cmake.test() def package_id(self): self.info.clear()