[cmake] link to system CXSparse if selected and found
@@ -44,6 +44,7 @@ if (WITH_SYSTEM_SUITESPARSE)
but not found! Using the internal copy of suitesparse")
else()
set(_sys_CXSparse TRUE)
+ list(APPEND SICONOS_LINK_LIBRARIES ${CXSparse_LIBRARY})
endif()
set(USE_SYSTEM_SUITESPARSE ${_sys_CXSparse} CACHE INTERNAL "flag to check to systemwide SuiteSparse install")
endif()
