From 7d2d86684999c1c5c916b5f7a6cf251c45feb7cc Mon Sep 17 00:00:00 2001 From: Sigma711 <1979934715@qq.com> Date: Sat, 26 Aug 2023 17:38:03 -0400 Subject: [PATCH] [src] Modify CMakeLists.txt for deleting shared library generating --- src/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cf462897..a7b66760 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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)