Use generator expression for compiler specifc linking

This commit is contained in:
ap
2017-01-06 21:40:19 -08:00
parent c2ae31be43
commit 39a770725f

View File

@@ -66,13 +66,10 @@ target_link_libraries(stationchat
stationapi
udplibrary
${Boost_LIBRARIES}
${SQLite3_LIBRARY})
${SQLite3_LIBRARY}
$<$<PLATFORM_ID:Windows>: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)