mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 02:17:16 +02:00
build: test_package/conanfile.py
updated for Conan 2.0
This commit is contained in:
@ -20,8 +20,9 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
from conan import ConanFile
|
||||
from conan.tools.cmake import CMake
|
||||
from conans import ConanFile, tools
|
||||
from conan.tools.build import cross_building
|
||||
|
||||
|
||||
class TestPackageConan(ConanFile):
|
||||
@ -38,5 +39,5 @@ class TestPackageConan(ConanFile):
|
||||
cmake.build()
|
||||
|
||||
def test(self):
|
||||
if not tools.cross_building(self.settings):
|
||||
if not cross_building(self):
|
||||
self.run("test_package", run_environment=True)
|
||||
|
Reference in New Issue
Block a user