mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 10:27:16 +02:00
CONAN_RUN_TESTS support added
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
- CONAN_RUN_TESTS: 1
|
||||||
- CONAN_DOCKER_32_IMAGES: 1
|
- CONAN_DOCKER_32_IMAGES: 1
|
||||||
|
|
||||||
linux: &linux
|
linux: &linux
|
||||||
|
@ -44,7 +44,10 @@ class UnitsConan(ConanFile):
|
|||||||
|
|
||||||
def _configure_cmake(self):
|
def _configure_cmake(self):
|
||||||
cmake = 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
|
return cmake
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
|
Reference in New Issue
Block a user