--- third_party/cxsparse/CMakeLists.txt.orig 2018-08-26 19:12:57 UTC +++ third_party/cxsparse/CMakeLists.txt @@ -6,7 +6,7 @@ project(CXSparse C) file(GLOB CXSparse_SRCS "Source/*.c") set_source_files_properties(${CXSparse_SRCS} PROPERTIES LANGUAGE C) -add_library(openMVG_cxsparse STATIC ${CXSparse_SRCS}) +add_library(openMVG_cxsparse SHARED ${CXSparse_SRCS}) target_compile_definitions(openMVG_cxsparse PUBLIC NCOMPLEX) target_include_directories(openMVG_cxsparse PRIVATE ./ ./Include) if(UNIX)