Browse Source

Update CMakeLists.txt

NX 6 years ago
parent
commit
f8bbe6c3b9
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Source/Native/CMakeLists.txt

+ 5 - 1
Source/Native/CMakeLists.txt

@@ -14,6 +14,10 @@ endif()
 
 
 include_directories(${PROJECT_SOURCE_DIR})
 include_directories(${PROJECT_SOURCE_DIR})
 
 
+if (ENET_DEBUG)
+    add_definitions(-DENET_DEBUG)
+endif()
+
 if (ENET_LZ4)
 if (ENET_LZ4)
     add_definitions(-DENET_LZ4)
     add_definitions(-DENET_LZ4)
     set(SOURCES lz4/lz4.c)
     set(SOURCES lz4/lz4.c)
@@ -33,4 +37,4 @@ if (ENET_SHARED)
     if (WIN32)
     if (WIN32)
         target_link_libraries(enet winmm ws2_32)
         target_link_libraries(enet winmm ws2_32)
     endif()
     endif()
-endif()
+endif()