From 6862a4870183a3651ca7490b4a1fc2fe8f194041 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Mon, 10 Nov 2014 10:29:44 +0100 Subject: [PATCH] mtapi_network_c: forgot to link ws2_32 lib --- mtapi_network_c/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mtapi_network_c/CMakeLists.txt b/mtapi_network_c/CMakeLists.txt index cacef70..e1d98fe 100644 --- a/mtapi_network_c/CMakeLists.txt +++ b/mtapi_network_c/CMakeLists.txt @@ -13,7 +13,11 @@ FOREACH(src_tmp ${EMBB_MTAPI_NETWORK_C_SOURCES}) SET_PROPERTY(SOURCE ${src_tmp} PROPERTY LANGUAGE CXX) ENDFOREACH(src_tmp) ENDIF() - + +IF(MSVC) +set (EMBB_MTAPI_NETWORK_C_LIBS ws2_32) +ENDIF() + # Execute the GroupSources macro include(${CMAKE_SOURCE_DIR}/CMakeCommon/GroupSourcesMSVC.cmake) GroupSourcesMSVC(include) @@ -33,7 +37,7 @@ target_link_libraries(embb_mtapi_network_c embb_mtapi_c embb_base_c) if (BUILD_TESTS STREQUAL ON) include_directories(${CMAKE_CURRENT_BINARY_DIR}/../partest/include) add_executable (embb_mtapi_network_c_test ${EMBB_MTAPI_NETWORK_TEST_SOURCES}) - target_link_libraries(embb_mtapi_network_c_test embb_mtapi_network_c embb_mtapi_c partest embb_base_c ${compiler_libs}) + target_link_libraries(embb_mtapi_network_c_test embb_mtapi_network_c embb_mtapi_c partest embb_base_c ${compiler_libs} ${EMBB_MTAPI_NETWORK_C_LIBS}) CopyBin(BIN embb_mtapi_network_c_test DEST ${local_install_dir}) endif() -- libgit2 0.26.0