Commit 1d027af2 authored by Max Lyon's avatar Max Lyon
Browse files

link static version of osqp

parent 921b074f
Pipeline #16606 passed with stages
in 7 minutes and 44 seconds
...@@ -529,8 +529,8 @@ target_link_libraries (CoMISo PUBLIC ...@@ -529,8 +529,8 @@ target_link_libraries (CoMISo PUBLIC
if (NOT TARGET osqp) if (NOT TARGET osqp)
find_package(osqp) find_package(osqp)
endif() endif()
if (TARGET osqp) if (TARGET osqpstatic)
target_link_libraries (CoMISo PRIVATE osqp) target_link_libraries (CoMISo PRIVATE osqpstatic)
set (COMISO_OSQP_CONFIG_FILE_SETTINGS "#define COMISO_OSQP_AVAILABLE 1" ) set (COMISO_OSQP_CONFIG_FILE_SETTINGS "#define COMISO_OSQP_AVAILABLE 1" )
else() else()
set (COMISO_OSQP_CONFIG_FILE_SETTINGS "#define COMISO_OSQP_AVAILABLE 0" ) set (COMISO_OSQP_CONFIG_FILE_SETTINGS "#define COMISO_OSQP_AVAILABLE 0" )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment