mirror of
https://github.com/springzfx/cgproxy.git
synced 2026-05-26 18:15:30 +08:00
remove pthread.h, use CMAKE_DL_LIBS
This commit is contained in:
@@ -12,7 +12,7 @@ endif()
|
|||||||
add_executable(main main.cpp
|
add_executable(main main.cpp
|
||||||
common.cpp config.cpp cgroup_attach.cpp
|
common.cpp config.cpp cgroup_attach.cpp
|
||||||
socket_client.cpp socket_server.cpp)
|
socket_client.cpp socket_server.cpp)
|
||||||
target_link_libraries(main PRIVATE nlohmann_json::nlohmann_json Threads::Threads dl)
|
target_link_libraries(main PRIVATE nlohmann_json::nlohmann_json Threads::Threads ${CMAKE_DL_LIBS})
|
||||||
set_target_properties(main PROPERTIES LINKER_LANGUAGE CXX)
|
set_target_properties(main PROPERTIES LINKER_LANGUAGE CXX)
|
||||||
set_target_properties(main PROPERTIES OUTPUT_NAME cgproxy)
|
set_target_properties(main PROPERTIES OUTPUT_NAME cgproxy)
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
#include <functional>
|
#include <functional>
|
||||||
#include <future>
|
#include <future>
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
#include <pthread.h>
|
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user