diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a0daa339c8c200e580406ffa70cd1ad51df7908..0c792d0f71dbedddd493255d7ed1093cb4712fa3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ endif () #add_dependencies(paddle-mobile openblas_proj) # gen static -ADD_LIBRARY(paddle-mobile STATIC ${PADDLE_MOBILE_CC} ${PADDLE_MOBILE_H} src/operators/feed_op.cpp src/operators/feed_op.h src/operators/fetch_op.cpp src/operators/fetch_op.h) +ADD_LIBRARY(paddle-mobile SHARED ${PADDLE_MOBILE_CC} ${PADDLE_MOBILE_H} src/operators/feed_op.cpp src/operators/feed_op.h src/operators/fetch_op.cpp src/operators/fetch_op.h) if (ANDROID) # openblas.a need log lib target_link_libraries(paddle-mobile protobuf-lite)