We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22fa020 commit 9050804Copy full SHA for 9050804
CMakeLists.txt
@@ -26,6 +26,5 @@ if(BuildCodeFormat)
26
endif()
27
28
if(BuildCodeFormatServer)
29
- #add_subdirectory(CodeFormatServer)
+ add_subdirectory(CodeFormatServer)
30
31
-add_subdirectory(CodeFormatServer)
CodeFormatServer/CMakeLists.txt
@@ -43,6 +43,12 @@ target_sources(CodeFormatServer
43
44
target_link_libraries(CodeFormatServer PUBLIC CodeService)
45
46
-#if(WIN32)
47
-# target_link_libraries(CodeFormatServer PUBLIC -lwsock32 -lws2_32)
48
-#endif()
+if(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ target_link_libraries(CodeFormatServer PUBLIC pthread)
+endif()
49
+
50
+install(
51
+ TARGETS CodeFormatServer
52
+ LIBRARY DESTINATION lib
53
+ RUNTIME DESTINATION bin
54
+)
0 commit comments