comparison CMakeLists.txt @ 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
comparison
equal deleted inserted replaced
2:9d9266316a91 3:5496bdcc73f6
35 IF(APPLE) 35 IF(APPLE)
36 SET(LUASOCKET_LINK_FLAGS "-undefined dynamic_lookup") 36 SET(LUASOCKET_LINK_FLAGS "-undefined dynamic_lookup")
37 SET(LUASOCKET_C_FLAGS "-fno-common -pedantic") 37 SET(LUASOCKET_C_FLAGS "-fno-common -pedantic")
38 ADD_DEFINITIONS(-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN) 38 ADD_DEFINITIONS(-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN)
39 ENDIF(APPLE) 39 ENDIF(APPLE)
40 40 IF(WIN32)
41 SET(LUASOCKET_LINK_FLAGS "wsock32")
42 # SET(LUASOCKET_C_FLAGS "-fno-common -pedantic")
43 ADD_DEFINITIONS(-DLUASOCKET_DEBUG "-DLUASOCKET_API=__declspec(dllexport)")
44 ENDIF(WIN32)
41 45
42 INCLUDE_DIRECTORIES( 46 INCLUDE_DIRECTORIES(
43 ${LUA_INCLUDE_DIR} 47 ${LUA_INCLUDE_DIR}
44 ) 48 )
45 49