Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sguionni committed Jul 30, 2024
1 parent 131014b commit 76e17b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion lib/renderer/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def build(self):

def package(self):
cmake = CMake(self)
cmake.ctest(["--output-on-failure"])
cmake.install()
copy(self, "*.cmake", self.build_folder, self.package_folder)

Expand Down
13 changes: 7 additions & 6 deletions lib/util/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class VTXUtilRecipe(ConanFile):
package_type = "library"

settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False], "fPIC": [True, False]}
default_options = {"shared": False, "fPIC": True}
options = {"shared": [True, False], "fPIC": [True, False], "test": [True, False]}
default_options = {"shared": False, "fPIC": True, "test": False}

generators = "CMakeDeps", "CMakeToolchain"

Expand All @@ -23,7 +23,7 @@ def requirements(self):
self.requires("nlohmann_json/3.11.3", transitive_headers=True)
self.requires("magic_enum/0.9.5", transitive_headers=True)
self.requires("cpr/1.10.5", transitive_headers=True)
self.requires("catch2/3.6.0")
self.requires("catch2/3.6.0")

def config_options(self):
if self.settings.os == "Windows":
Expand All @@ -39,11 +39,12 @@ def generate(self):
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
cmake.build()
if self.options.test == True:
cmake.ctest(["--output-on-failure"])

def package(self):
cmake = CMake(self)
cmake.ctest(["--output-on-failure"])
cmake = CMake(self)
cmake.install()
copy(self, "*.cmake", self.build_folder, self.package_folder)

Expand Down

0 comments on commit 76e17b2

Please sign in to comment.