Added linkage of s11n required libs in standalone
authorRuslan Garnov <ruslan.garnov@intel.com>
Thu, 24 Sep 2020 14:40:43 +0000 (17:40 +0300)
committerRuslan Garnov <ruslan.garnov@intel.com>
Thu, 24 Sep 2020 14:44:58 +0000 (17:44 +0300)
modules/gapi/cmake/standalone.cmake

index f448d97..ca54697 100644 (file)
@@ -45,3 +45,8 @@ if(MSVC)
 endif()
 
 target_link_libraries(${FLUID_TARGET} PRIVATE ade)
+
+if(WIN32)
+  # Required for htonl/ntohl on Windows
+  target_link_libraries(${FLUID_TARGET} PRIVATE wsock32 ws2_32)
+endif()