|
@@ -12,11 +12,17 @@ include_directories(${PROJECT_SOURCE_DIR}/include)
|
|
if (DEFINED ENET_STATIC)
|
|
if (DEFINED ENET_STATIC)
|
|
add_definitions(-DENET_IMPLEMENTATION)
|
|
add_definitions(-DENET_IMPLEMENTATION)
|
|
add_library(enet_static STATIC include/enet.h)
|
|
add_library(enet_static STATIC include/enet.h)
|
|
- target_link_libraries(enet_static winmm ws2_32)
|
|
|
|
|
|
+
|
|
|
|
+ if (WIN32)
|
|
|
|
+ target_link_libraries(enet_static winmm ws2_32)
|
|
|
|
+ endif()
|
|
endif()
|
|
endif()
|
|
|
|
|
|
if (DEFINED ENET_SHARED)
|
|
if (DEFINED ENET_SHARED)
|
|
add_definitions(-DENET_IMPLEMENTATION -DENET_DLL)
|
|
add_definitions(-DENET_IMPLEMENTATION -DENET_DLL)
|
|
add_library(enet STATIC include/enet.h)
|
|
add_library(enet STATIC include/enet.h)
|
|
- target_link_libraries(enet winmm ws2_32)
|
|
|
|
|
|
+
|
|
|
|
+ if (WIN32)
|
|
|
|
+ target_link_libraries(enet winmm ws2_32)
|
|
|
|
+ endif()
|
|
endif()
|
|
endif()
|