From 39a770725f3101e50ab40796b6cae11c896aa32d Mon Sep 17 00:00:00 2001 From: ap Date: Fri, 6 Jan 2017 21:40:19 -0800 Subject: [PATCH] Use generator expression for compiler specifc linking --- src/stationchat/CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/stationchat/CMakeLists.txt b/src/stationchat/CMakeLists.txt index 1ccac1f..b2e335e 100644 --- a/src/stationchat/CMakeLists.txt +++ b/src/stationchat/CMakeLists.txt @@ -66,13 +66,10 @@ target_link_libraries(stationchat stationapi udplibrary ${Boost_LIBRARIES} - ${SQLite3_LIBRARY}) + ${SQLite3_LIBRARY} + $<$:ws2_32>) target_include_directories(stationchat PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) -if(WIN32) - target_link_libraries(stationchat ws2_32) -endif() - install(TARGETS stationchat RUNTIME DESTINATION bin)