mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
enet: Search for shared library
This commit is contained in:
parent
cc5a2f3411
commit
691b690afe
@ -536,9 +536,14 @@ include_directories(Source/Core)
|
|||||||
add_subdirectory(Externals/Bochs_disasm)
|
add_subdirectory(Externals/Bochs_disasm)
|
||||||
include_directories(Externals/Bochs_disasm)
|
include_directories(Externals/Bochs_disasm)
|
||||||
|
|
||||||
if(NOT ENET_FOUND)
|
if(NOT APPLE AND NOT ANDROID)
|
||||||
|
check_lib(ENET enet enet/enet.h QUIET)
|
||||||
|
endif()
|
||||||
|
if (ENET_FOUND)
|
||||||
|
message("Using shared enet")
|
||||||
|
else()
|
||||||
message("Using static enet from Externals")
|
message("Using static enet from Externals")
|
||||||
include_directories(Externals)
|
include_directories(Externals/enet/include)
|
||||||
add_subdirectory(Externals/enet)
|
add_subdirectory(Externals/enet)
|
||||||
endif()
|
endif()
|
||||||
LIST(APPEND LIBS enet)
|
LIST(APPEND LIBS enet)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <functional>
|
#include <functional>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <enet/include/enet/enet.h>
|
#include <enet/enet.h>
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
#include "Common/Thread.h"
|
#include "Common/Thread.h"
|
||||||
#include "Common/TraversalProto.h"
|
#include "Common/TraversalProto.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user