cmake changes for msvc
This commit is contained in:
parent
0f3aa4248a
commit
8199a8ce5f
1 changed files with 6 additions and 2 deletions
|
@ -15,7 +15,7 @@ else()
|
|||
add_definitions("-DMIME_API=__attribute__((visibility(default)))")
|
||||
set(POSTN so)
|
||||
endif(WIN32)
|
||||
if(MINGW)
|
||||
if(WIN32)#MINGW) and msvc
|
||||
add_definitions(-DLUASOCKET_INET_PTON)
|
||||
endif()
|
||||
|
||||
|
@ -28,7 +28,11 @@ add_library(socket SHARED ${socket_src})
|
|||
ADD_LIBRARY(mime SHARED ./src/mime.c ./src/compat.c)
|
||||
#set_target_properties(socket PROPERTIES PREFIX "" OUTPUT_NAME core)
|
||||
#set_target_properties(mime PROPERTIES PREFIX "" OUTPUT_NAME core)
|
||||
TARGET_LINK_LIBRARIES(socket ${LUA_LIBRARY} wsock32 ws2_32)
|
||||
if(MSVC)
|
||||
set_target_properties(socket PROPERTIES PREFIX "lib")
|
||||
set_target_properties(mime PROPERTIES PREFIX "lib")
|
||||
endif()
|
||||
TARGET_LINK_LIBRARIES(socket ${LUA_LIBRARY} wsock32 ws2_32 )
|
||||
TARGET_LINK_LIBRARIES(mime ${LUA_LIBRARY})
|
||||
|
||||
######install
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue