|
|
@@ -18,7 +18,7 @@ endif()
|
|
|
if (ENET_STATIC)
|
|
|
add_library(enet_static STATIC enet.c ${SOURCES})
|
|
|
|
|
|
- if (WIN32)
|
|
|
+ if (NOT LINUX)
|
|
|
target_link_libraries(enet_static winmm ws2_32)
|
|
|
SET_TARGET_PROPERTIES(enet_static PROPERTIES PREFIX "")
|
|
|
endif()
|
|
|
@@ -28,7 +28,7 @@ if (ENET_SHARED)
|
|
|
add_definitions(-DENET_DLL)
|
|
|
add_library(enet SHARED enet.c ${SOURCES})
|
|
|
|
|
|
- if (WIN32)
|
|
|
+ if (NOT LINUX)
|
|
|
target_link_libraries(enet winmm ws2_32)
|
|
|
SET_TARGET_PROPERTIES(enet PROPERTIES PREFIX "")
|
|
|
endif()
|