Skip to content

Commit

Permalink
set the OPENSIM_WITH_CASADI during install step
Browse files Browse the repository at this point in the history
  • Loading branch information
carmichaelong authored and aymanhab committed Jul 19, 2022
1 parent 1364efe commit 966d887
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ if(APPLE AND OPENSIM_COPY_DEPENDENCIES AND (NOT (DEFINED OPENSIM_WITH_CASADI AND
${CMAKE_CURRENT_BINARY_DIR}/OpenSimMocoInstallMacDependencyLibraries.cmake)
configure_file(OpenSimMocoInstallMacDependencyLibraries.cmake.in
"${script}" @ONLY)
# Variables are not forwarded to the install script, so add a line
# to set the OPENSIM_WITH_CASADI variable during the install step.
install(CODE "set(OPENSIM_WITH_CASADI \"${OPENSIM_WITH_CASADI}\")")
install(SCRIPT "${script}")

endif()

0 comments on commit 966d887

Please sign in to comment.