Skip to content

Commit

Permalink
samarium: force-disable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Sep 25, 2024
1 parent 3703cd3 commit e9c6905
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion recipes/samarium/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from conan.errors import ConanInvalidConfiguration
from conan.tools.build import check_min_cppstd
from conan.tools.cmake import CMake, cmake_layout, CMakeToolchain, CMakeDeps
from conan.tools.files import copy, get
from conan.tools.files import copy, get, save
from conan.tools.scm import Version

required_conan_version = ">=1.47.0"
Expand Down Expand Up @@ -84,7 +84,12 @@ def generate(self):
deps = CMakeDeps(self)
deps.generate()

def _patch_sources(self):
# Force-disable all tests
save(self, os.path.join(self.source_folder, "test", "CMakeLists.txt"), "")

def build(self):
self._patch_sources()
cmake = CMake(self)
cmake.configure()
cmake.build()
Expand Down

0 comments on commit e9c6905

Please sign in to comment.