Skip to content

Commit 74746d6

Browse files
committed
Trying a different path for blas
1 parent 9308d25 commit 74746d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

install_KLU_Sundials.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ def install_suitesparse():
197197
vcpkg_dir = os.environ.get("VCPKG_ROOT_DIR", None)
198198
triplet = os.environ.get("VCPKG_DEFAULT_TRIPLET", None)
199199
feat_flags = os.environ.get("VCPKG_FEATURE_FLAGS", None)
200+
vcpkg_install_dir = str(pathlib.Path(__file__).parent.resolve() / "vcpkg_installed" / triplet)
200201
if vcpkg_dir:
201202
cmake_options += (
202203
f" -DVCPKG_ROOT_DIR={vcpkg_dir}"
@@ -205,6 +206,7 @@ def install_suitesparse():
205206
f" -DVCPKG_FEATURE_FLAGS={feat_flags}"
206207
f" -DCMAKE_TOOLCHAIN_FILE={vcpkg_dir}/scripts/buildsystems/vcpkg.cmake"
207208
f" -DBLAS_VENDOR=OpenBLAS"
209+
f" -DBLAS_ROOT={DEFAULT_INSTALL_DIR}"
208210
)
209211
env["CMAKE_OPTIONS"] = cmake_options
210212
subprocess.run(make_cmd, cwd=build_dir, env=env, shell=True, check=True)

0 commit comments

Comments
 (0)