From 3d3ddd274ee6e0150023a5da42599fa0e5524b09 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 26 Jan 2020 14:46:12 +0100 Subject: [PATCH] Fixed cmake for non server settings --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f8c54b8..b75f62a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -192,7 +192,10 @@ if (NOT WIN32) endif () add_library(TeaSpeak STATIC ${SOURCE_FILES} ${HEADER_FILES}) -target_link_libraries(TeaSpeak PUBLIC CXXTerminal::static threadpool::static jsoncpp_lib) +target_link_libraries(TeaSpeak PUBLIC threadpool::static jsoncpp_lib) +if (TEASPEAK_SERVER) + target_link_libraries(TeaSpeak PUBLIC CXXTerminal::static) +endif () target_include_directories(TeaSpeak PUBLIC src/) install(TARGETS TeaSpeak ARCHIVE DESTINATION lib