fix cross building
This commit is contained in:
parent
7276880fdf
commit
1400b612c1
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from conans import ConanFile, CMake
|
||||
from conans import ConanFile, tools, CMake
|
||||
from conans.model.version import Version
|
||||
from conans.errors import ConanException
|
||||
|
||||
|
@ -76,7 +76,7 @@ class NameofConan(ConanFile):
|
|||
def build(self):
|
||||
cmake = self.configure_cmake()
|
||||
cmake.build()
|
||||
if self.options.build_tests:
|
||||
if self.options.build_tests and not tools.cross_building(self.settings):
|
||||
cmake.test()
|
||||
|
||||
def package(self):
|
||||
|
|
Loading…
Reference in a new issue