Commit 6862a487 by Marcus Winter Committed by unknown

mtapi_network_c: forgot to link ws2_32 lib

parent 458054e7
...@@ -14,6 +14,10 @@ FOREACH(src_tmp ${EMBB_MTAPI_NETWORK_C_SOURCES}) ...@@ -14,6 +14,10 @@ FOREACH(src_tmp ${EMBB_MTAPI_NETWORK_C_SOURCES})
ENDFOREACH(src_tmp) ENDFOREACH(src_tmp)
ENDIF() ENDIF()
IF(MSVC)
set (EMBB_MTAPI_NETWORK_C_LIBS ws2_32)
ENDIF()
# Execute the GroupSources macro # Execute the GroupSources macro
include(${CMAKE_SOURCE_DIR}/CMakeCommon/GroupSourcesMSVC.cmake) include(${CMAKE_SOURCE_DIR}/CMakeCommon/GroupSourcesMSVC.cmake)
GroupSourcesMSVC(include) GroupSourcesMSVC(include)
...@@ -33,7 +37,7 @@ target_link_libraries(embb_mtapi_network_c embb_mtapi_c embb_base_c) ...@@ -33,7 +37,7 @@ target_link_libraries(embb_mtapi_network_c embb_mtapi_c embb_base_c)
if (BUILD_TESTS STREQUAL ON) if (BUILD_TESTS STREQUAL ON)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../partest/include) include_directories(${CMAKE_CURRENT_BINARY_DIR}/../partest/include)
add_executable (embb_mtapi_network_c_test ${EMBB_MTAPI_NETWORK_TEST_SOURCES}) 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}) CopyBin(BIN embb_mtapi_network_c_test DEST ${local_install_dir})
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment