Permalink
Browse files

Allow use system enet

  • Loading branch information...
proller committed Aug 5, 2018
1 parent b3f955f commit c29643053e2a63ae933214fbda48970a63746e82
Showing with 11 additions and 3 deletions.
  1. +11 −3 src/CMakeLists.txt
View
@@ -762,9 +762,17 @@ else()
endif()
if(USE_ENET)
add_subdirectory(external/enet)
include_directories(${PROJECT_SOURCE_DIR}/external/enet/include)
set(ENET_LIBRARY enet)
if(NOT ENABLE_SYSTEM_JSONCPP AND EXISTS ${PROJECT_SOURCE_DIR}/external/enet/include/enet/enet.h)
add_subdirectory(external/enet)
set(ENET_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/external/enet/include)
set(ENET_LIBRARY enet)
endif()
if(NOT ENET_LIBRARY)
find_library(ENET_LIBRARY NAMES enet)
find_path(ENET_INCLUDE_DIR enet/enet.h)
endif()
include_directories(${ENET_INCLUDE_DIR})
message(STATUS "Using enet: ${ENET_INCLUDE_DIR} ${ENET_LIBRARY}")
endif()
set(FMcommon_SRCS

1 comment on commit c296430

@OldCoder

This comment has been minimized.

Show comment
Hide comment
@OldCoder

OldCoder Sep 18, 2018

Contributor

Proller, may we talk by email? You can reach me at chillcorner@ymail.com or oldcoder@yahoo.com
Or stop by my IRC network at irc.oldcoder.org
I'd like to help with Freeminer

Contributor

OldCoder commented on c296430 Sep 18, 2018

Proller, may we talk by email? You can reach me at chillcorner@ymail.com or oldcoder@yahoo.com
Or stop by my IRC network at irc.oldcoder.org
I'd like to help with Freeminer

Please sign in to comment.