Skip to content

Commit

Permalink
Define OpenMP_ROOT for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
bldrvnlw committed May 28, 2024
1 parent 3ae1033 commit 9e63c66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ def generate(self):
tc.variables["Qt6_ROOT"] = f"{qt_root}"

if os_info.is_macos:
proc = subprocess.run("brew --prefix libomp", shell=True, capture_output=True)
proc = subprocess.run(
"brew --prefix libomp", shell=True, capture_output=True
)
prefix_path = f"{proc.stdout.decode('UTF-8').strip()}"
tc.variables["CMAKE_PREFIX_PATH"] = prefix_path
tc.variables["OpenMP_ROOT"] = prefix_path

tc.variables["USE_HDF5_ARTIFACTORY_LIBS"] = "ON"
tc.variables[
Expand Down

0 comments on commit 9e63c66

Please sign in to comment.