Skip to content

Commit a7a6670

Browse files
committed
Don't try to locate casadi unless ALPAQA_WITH_EXTERNAL_CASADI is set
1 parent e65d848 commit a7a6670

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cmake/CasADiConfig.cmake.in

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
include(CMakeFindDependencyMacro)
44
find_dependency(alpaqaCore CONFIG)
5-
find_dependency(casadi)
5+
if (@ALPAQA_WITH_EXTERNAL_CASADI@)
6+
find_dependency(casadi)
7+
endif()
68

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

0 commit comments

Comments
 (0)