Ejemplo n.º 1
0
 def build(self):
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
     if self.options.run_tests:
         with tools.run_environment(self):
             cmake.test(output_on_failure=True)
Ejemplo n.º 2
0
 def build(self):
     cmake = CMake(self)
     with tools.run_environment(self):
         cmake.configure()
         cmake.build()
         if self.options.run_tests:
             with tools.environment_append({"CTEST_OUTPUT_ON_FAILURE":
                                            "1"}):
                 cmake.test()
Ejemplo n.º 3
0
 def build(self):
     cmake = CMake(self)
     cmake.configure(source_folder=None if self._run_tests else "src")
     cmake.build()
     if self._run_tests:
         cmake.test(output_on_failure=True)
Ejemplo n.º 4
0
 def test(self):
     if not tools.cross_building(self):
         cmake = CMake(self)
         with tools.run_environment(self):
             cmake.test()
Ejemplo n.º 5
0
 def build(self):
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
     if self.options.build_tests:
         cmake.test(output_on_failure=True)
Ejemplo n.º 6
0
 def build(self):
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
     if self.settings.arch == "x86_64":
         cmake.test()
Ejemplo n.º 7
0
 def build(self):
     cmake = CMake(self)
     cmake.configure(build_script_folder=None if self._run_tests else "src")
     cmake.build()
     if self._run_tests:
         cmake.test()
Ejemplo n.º 8
0
 def test(self):
     if not tools.cross_building(self):
         cmake = CMake(self)
         cmake.test()