changeset 3:5496bdcc73f6

Fixes for Windows
author Eric Wing <ewing . public | - at - | gmail . com
date Sat, 30 Aug 2008 00:48:02 -0700
parents 9d9266316a91
children f0a27ccb1193
files CMakeLists.txt
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Fri Aug 29 22:48:39 2008 -0700
+++ b/CMakeLists.txt	Sat Aug 30 00:48:02 2008 -0700
@@ -37,7 +37,11 @@
 	SET(LUASOCKET_C_FLAGS "-fno-common -pedantic")
 	ADD_DEFINITIONS(-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN)
 ENDIF(APPLE)
-
+IF(WIN32)
+	SET(LUASOCKET_LINK_FLAGS "wsock32")
+#	SET(LUASOCKET_C_FLAGS "-fno-common -pedantic")
+	ADD_DEFINITIONS(-DLUASOCKET_DEBUG "-DLUASOCKET_API=__declspec(dllexport)")
+ENDIF(WIN32)
 
 INCLUDE_DIRECTORIES(
 	${LUA_INCLUDE_DIR}