Skip to content

Commit

Permalink
Just a CI test to print some vars
Browse files Browse the repository at this point in the history
  • Loading branch information
alxvth committed Oct 9, 2024
1 parent 0e3421c commit bfbc449
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 2 additions & 0 deletions ExampleDependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ add_library(${PROJECT_NAME} SHARED ${PLUGIN_SOURCES})
# Include ManiVault headers, including system data plugins
target_include_directories(${PROJECT_NAME} PRIVATE "${ManiVault_INCLUDE_DIR}")

message(STATUS "ManiVault_INCLUDE_DIR: ${ManiVault_INCLUDE_DIR}")

# -----------------------------------------------------------------------------
# Target properties
# -----------------------------------------------------------------------------
Expand Down
20 changes: 17 additions & 3 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,30 @@ def generate(self):
# for Qt < 6.4.2
tc.variables["CMAKE_PREFIX_PATH"] = qt_dir

if os.environ.get("ManiVault_DIR", None):
print("ManiVault_DIR: defined on CI")
else:
print("ManiVault_DIR: not defined on CI")
if os.environ.get("MV_INSTALL_DIR", None):
print("ManiVault_DIR: defined on CI")
else:
print("ManiVault_DIR: not defined on CI")

# Set the installation directory for ManiVault based on the MV_INSTALL_DIR environment variable
# or if none is specified, set it to the build/install dir.
if not os.environ.get("MV_INSTALL_DIR", None):
if os.environ.get("ManiVault_DIR", None):
self.manivault_dir = pathlib.Path(os.environ["ManiVault_DIR"]).as_posix()
else:
self.manivault_dir = self.install_dir + '/cmake/mv/'
os.environ["MV_INSTALL_DIR"] = os.path.join(self.build_folder, "install")
print("MV_INSTALL_DIR: ", os.environ["MV_INSTALL_DIR"])
self.install_dir = pathlib.Path(os.environ["MV_INSTALL_DIR"]).as_posix()

self.install_dir = pathlib.Path(os.environ["MV_INSTALL_DIR"]).as_posix()

# Find ManiVault with find_package
self.manivault_dir = self.install_dir + '/cmake/mv/'

tc.variables["ManiVault_DIR"] = self.manivault_dir
print("ManiVault_DIR: ", self.install_dir)

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

0 comments on commit bfbc449

Please sign in to comment.