build: Conan test_package fixed

This commit is contained in:
Mateusz Pusz
2020-12-16 21:54:43 +01:00
parent 6ac08c2e3b
commit 6a23718969
2 changed files with 7 additions and 18 deletions

View File

@@ -21,11 +21,10 @@
# SOFTWARE.
from conans import ConanFile, CMake, tools, RunEnvironment
import os
class TestPackageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake", "cmake_find_package"
generators = "cmake_find_package_multi"
def build(self):
cmake = CMake(self)
@@ -34,5 +33,4 @@ class TestPackageConan(ConanFile):
def test(self):
if not tools.cross_building(self.settings):
self.run(os.path.join("bin", "test_package_conan"), run_environment=True)
self.run(os.path.join("bin", "test_package_cmake"), run_environment=True)
self.run("test_package", run_environment=True)