Skip to content

Commit

Permalink
[src] Modify CMakeLists.txt for deleting shared library generating
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigma711 committed Aug 26, 2023
1 parent 389b14c commit 7d2d866
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ TARGET_LINK_LIBRARIES(taotu-static PUBLIC ZLIB::ZLIB)
SET_TARGET_PROPERTIES(taotu-static PROPERTIES OUTPUT_NAME "taotu")
SET_TARGET_PROPERTIES(taotu-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)

ADD_LIBRARY(taotu-shared SHARED ${TAOTU_SOURCE})
TARGET_LINK_LIBRARIES(taotu-shared ${CMAKE_THREAD_LIBS_INIT})
TARGET_LINK_LIBRARIES(taotu-shared PUBLIC protobuf::libprotobuf)
TARGET_LINK_LIBRARIES(taotu-shared PUBLIC ZLIB::ZLIB)
SET_TARGET_PROPERTIES(taotu-shared PROPERTIES OUTPUT_NAME "taotu")
SET_TARGET_PROPERTIES(taotu-shared PROPERTIES CLEAN_DIRECT_OUTPUT 1)
# ADD_LIBRARY(taotu-shared SHARED ${TAOTU_SOURCE})
# TARGET_LINK_LIBRARIES(taotu-shared ${CMAKE_THREAD_LIBS_INIT})
# TARGET_LINK_LIBRARIES(taotu-shared PUBLIC protobuf::libprotobuf)
# TARGET_LINK_LIBRARIES(taotu-shared PUBLIC ZLIB::ZLIB)
# SET_TARGET_PROPERTIES(taotu-shared PROPERTIES OUTPUT_NAME "taotu")
# SET_TARGET_PROPERTIES(taotu-shared PROPERTIES CLEAN_DIRECT_OUTPUT 1)

0 comments on commit 7d2d866

Please sign in to comment.