mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +02:00
CONAN_RUN_TESTS support added
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
env:
|
||||
global:
|
||||
- CONAN_RUN_TESTS: 1
|
||||
- CONAN_DOCKER_32_IMAGES: 1
|
||||
|
||||
linux: &linux
|
||||
|
@ -44,7 +44,10 @@ class UnitsConan(ConanFile):
|
||||
|
||||
def _configure_cmake(self):
|
||||
cmake = CMake(self)
|
||||
cmake.configure(source_dir="%s/src" % self.source_folder)
|
||||
if tools.get_env("CONAN_RUN_TESTS", False):
|
||||
cmake.configure()
|
||||
else:
|
||||
cmake.configure(source_dir="%s/src" % self.source_folder)
|
||||
return cmake
|
||||
|
||||
def build(self):
|
||||
|
Reference in New Issue
Block a user