Skip to content

Commit

Permalink
Supply MV_INSTALL_DIR through conan
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianThijssen committed Oct 11, 2023
1 parent 32499ca commit 8be120b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions HDPS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ if(MSVC)
set(LINK_TYPE STATIC)
endif(MSVC)

message(STATUS "ManiVault Install dir: ${MV_INSTALL_DIR}")

# -----------------------------------------------------------------------------
# CMake Settings
# -----------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def generate(self):
qtpath = pathlib.Path(self.deps_cpp_info["qt"].rootpath)
qt_root = str(list(qtpath.glob("**/Qt6Config.cmake"))[0].parents[3].as_posix())
tc.variables["CMAKE_PREFIX_PATH"] = f"{qt_root}"
tc.variables["MV_INSTALL_DIR"] = self.install_dir
#tc.variables["Qt6_ROOT"] = qt_root

zlibpath = pathlib.Path(self.deps_cpp_info["zlib"].rootpath).as_posix()
Expand All @@ -161,7 +162,7 @@ def generate(self):
def _configure_cmake(self):
cmake = CMake(self)
cmake.verbose = True
cmake.configure(build_script_folder="hdps/core")
cmake.configure(variables={"MV_INSTALL_DIR": self.install_dir}, build_script_folder="hdps/core")
return cmake

def build(self):
Expand Down

0 comments on commit 8be120b

Please sign in to comment.