Skip to content

Commit

Permalink
Update conanfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alxvth authored Oct 11, 2024
1 parent 9ad4a18 commit ce5b251
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,16 @@ def generate(self):
# for Qt < 6.4.2
tc.variables["CMAKE_PREFIX_PATH"] = qt_root

# Use the ManiVault .cmake files
# Use the ManiVault .cmake file to find ManiVault with find_package
mv_core_root = self.deps_cpp_info["hdps-core"].rootpath
self.manivault_dir = pathlib.Path(mv_core_root, "cmake", "mv").as_posix()

# Find ManiVault with find_package
tc.variables["ManiVault_DIR"] = self.manivault_dir
print("ManiVault_DIR: ", self.manivault_dir)
manivault_dir = pathlib.Path(mv_core_root, "cmake", "mv").as_posix()
print("ManiVault_DIR: ", manivault_dir)
tc.variables["ManiVault_DIR"] = manivault_dir

# Set some build options
tc.variables["MV_UNITY_BUILD"] = "ON"

# Install vcpkg dependencies
# Use vcpkg-installed dependencies if there are any
if os.environ.get("VCPKG_ROOT", None):
vcpkg_dir = pathlib.Path(os.environ["VCPKG_ROOT"])
vcpkg_exe = vcpkg_dir / "vcpkg.exe" if self.settings.os == "Windows" else vcpkg_dir / "vcpkg"
Expand Down Expand Up @@ -144,7 +142,7 @@ def _configure_cmake(self):
return cmake

def build(self):
print("Build OS is : ", self.settings.os)
print("Build OS is: ", self.settings.os)

cmake = self._configure_cmake()
cmake.build(build_type="Debug")
Expand Down

0 comments on commit ce5b251

Please sign in to comment.