Skip to content

Commit

Permalink
Don't try to locate casadi unless ALPAQA_WITH_EXTERNAL_CASADI is set
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Jul 25, 2024
1 parent e65d848 commit a7a6670
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cmake/CasADiConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

include(CMakeFindDependencyMacro)
find_dependency(alpaqaCore CONFIG)
find_dependency(casadi)
if (@ALPAQA_WITH_EXTERNAL_CASADI@)
find_dependency(casadi)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/alpaqaCasADiTargets.cmake")

Expand Down

0 comments on commit a7a6670

Please sign in to comment.