Skip to content

Commit 168c138

Browse files
committed
modify cmake
1 parent 83813e2 commit 168c138

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CodeFormat/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ target_sources(CodeFormat
1616
src/LuaFormat.cpp
1717
)
1818

19-
target_link_libraries(CodeFormat PUBLIC CodeService Util)
19+
target_link_libraries(CodeFormat CodeService Util)
2020

2121
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
2222
target_link_libraries(CodeFormat -static-libstdc++ -static-libgcc)

CodeFormatServer/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ target_sources(CodeFormatServer
6060
${LuaCodeStyle_SOURCE_DIR}/3rd/mimalloc-2.0.9/src/static.c
6161
)
6262

63-
target_link_libraries(CodeFormatServer PUBLIC CodeService)
63+
target_link_libraries(CodeFormatServer CodeService)
6464

6565

6666
if (CMAKE_SYSTEM_NAME MATCHES "Windows")
6767
target_compile_definitions(CodeFormatServer PUBLIC -D_WIN32_WINNT=0x0601)
6868
elseif (CMAKE_SYSTEM_NAME MATCHES "Linux")
69-
target_link_libraries(CodeFormatServer PUBLIC pthread -static-libstdc++ -static-libgcc)
69+
target_link_libraries(CodeFormatServer pthread -static-libstdc++ -static-libgcc)
7070
endif ()
7171

7272
install(

0 commit comments

Comments
 (0)