Skip to content

Commit

Permalink
Fix CMake compile definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
nxrighthere authored Oct 29, 2018
1 parent 734b2e7 commit af73cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if (ENET_STATIC)
if (NOT ENET_LZ4)
add_library(enet_static STATIC library.c)
else()
add_definitions(ENET_LZ4)
add_definitions(-DENET_LZ4)
add_library(enet_static STATIC library.c lz4/lz4.c)
endif()

Expand All @@ -30,7 +30,7 @@ if (ENET_SHARED)
if (NOT ENET_LZ4)
add_library(enet SHARED library.c)
else()
add_definitions(ENET_LZ4)
add_definitions(-DENET_LZ4)
add_library(enet SHARED library.c lz4/lz4.c)
endif()

Expand Down

0 comments on commit af73cde

Please sign in to comment.