Browse Source

Update CMakeLists.txt

NX 6 years ago
parent
commit
93c0efefd6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/Native/CMakeLists.txt

+ 2 - 2
Source/Native/CMakeLists.txt

@@ -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()