Skip to content

Commit

Permalink
pybamm-team#3558 pybamm-team#3100 Don't use a default path to search …
Browse files Browse the repository at this point in the history
…for alternative `casadi` installations

Co-Authored-By: jsbrittain <98161205+jsbrittain@users.noreply.github.com>
  • Loading branch information
2 people authored and js1tr3 committed Aug 12, 2024
1 parent 1645549 commit 802616c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ endif()

if(${USE_PYTHON_CASADI})
message("Trying to link against Python casadi package")
find_package(casadi CONFIG PATHS ${CASADI_DIR} REQUIRED)
find_package(casadi CONFIG PATHS ${CASADI_DIR} REQUIRED NO_DEFAULT_PATH)
else()
message("Trying to link against any casadi package apart from the Python one")
set(CMAKE_IGNORE_PATH "${CASADI_DIR}/cmake")
Expand Down

0 comments on commit 802616c

Please sign in to comment.