Skip to content

Commit

Permalink
Fix varying cmake libdir lib(64)/ (#2033)
Browse files Browse the repository at this point in the history
Some systems use lib/, some lib64/. 

Just adding the amici package base dir to CMAKE_PREFIX_PATH doesn't suffice to find `FindSuiteSparse_config.cmake`.

Co-authored-by: Dilan Pathirana <[email protected]>
  • Loading branch information
dweindl and dilpath authored Mar 8, 2023
1 parent ecd6bbb commit 0996b6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/sdist/amici/setup.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def get_extension() -> CMakeExtension:
cmake_configure_options=[
"-DCMAKE_VERBOSE_MAKEFILE=ON",
"-DCMAKE_MODULE_PATH="
f"{prefix_path.as_posix()}/lib/cmake/SuiteSparse",
f"{prefix_path.as_posix()}/lib/cmake/SuiteSparse;"
f"{prefix_path.as_posix()}/lib64/cmake/SuiteSparse",
f"-DKLU_ROOT={prefix_path.as_posix()}",
"-DAMICI_PYTHON_BUILD_EXT_ONLY=ON",
],
Expand Down

0 comments on commit 0996b6a

Please sign in to comment.