From 2c466d30464b566c471a89c5528d768be7729445 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 21 Jun 2025 20:19:27 +0800 Subject: style: remove uncessary comments and fixed clangd format fix(server/client:read): correctly set good = false and cb when failed --- CMakeLists.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5937aa0..6641420 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,12 +36,10 @@ else() message(STATUS "Configuring libsock in Release") endif() -# Separate source files and headers file(GLOB_RECURSE PRIVATE_SOURCES CONFIGURE_DEPENDS "src/*.cpp") file(GLOB_RECURSE PRIVATE_HEADERS CONFIGURE_DEPENDS "src/*.hpp") file(GLOB_RECURSE PUBLIC_HEADERS CONFIGURE_DEPENDS "include/*.hpp") -# Create list of all source files (private sources + public headers) set(ALL_SOURCES ${PRIVATE_SOURCES} ${PUBLIC_HEADERS}) find_package(PkgConfig REQUIRED) @@ -51,7 +49,7 @@ target_include_directories( sock PUBLIC "./include" PRIVATE "./src" - PRIVATE "./src/misc") # Add this so FileDescriptor.hpp can be found + PRIVATE "./src/misc") set_target_properties(sock PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION 1) # tests add_custom_target(tests) @@ -68,8 +66,9 @@ set_target_properties(sock PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION 1) # # Installation install(TARGETS sock) -install(DIRECTORY "include/libsock" - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} - PATTERN "misc" EXCLUDE) +install( + DIRECTORY "include/libsock" + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + PATTERN "misc" EXCLUDE) install(FILES ${CMAKE_BINARY_DIR}/libsock.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) -- cgit v1.2.3