From 2a5c7a87afc34cc24f1c2e772569aba0a447d081 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Thu, 10 May 2012 21:54:28 +0000
Subject: [PATCH] - Add Windows required library
---
library/CMakeLists.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
index 8b2e9326d..ecc206530 100644
--- a/library/CMakeLists.txt
+++ b/library/CMakeLists.txt
@@ -43,6 +43,10 @@ set(src
xtea.c
)
+if(WIN32)
+set(libs ws2_32)
+endif(WIN32)
+
if(NOT USE_SHARED_POLARSSL_LIBRARY)
add_library(polarssl STATIC ${src})
@@ -54,6 +58,8 @@ set_target_properties(polarssl PROPERTIES VERSION 1.1.1 SOVERSION 1)
endif(NOT USE_SHARED_POLARSSL_LIBRARY)
+target_link_libraries(polarssl ${libs})
+
install(TARGETS polarssl
DESTINATION ${LIB_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)