diff --git a/CMakeLists.txt b/CMakeLists.txt
index 612de7ca48..37c247acc1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -536,9 +536,14 @@ include_directories(Source/Core)
add_subdirectory(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")
- include_directories(Externals)
+ include_directories(Externals/enet/include)
add_subdirectory(Externals/enet)
endif()
LIST(APPEND LIBS enet)
diff --git a/Externals/enet/enet.vcxproj b/Externals/enet/enet.vcxproj
index f19b35a8a8..74a77d3a91 100644
--- a/Externals/enet/enet.vcxproj
+++ b/Externals/enet/enet.vcxproj
@@ -1,18 +1,10 @@
-
- Debug
- Win32
-
Debug
x64
-
- Release
- Win32
-
Release
x64
@@ -71,17 +63,7 @@
-
-
- $(ExternalsDir)enet\include;%(AdditionalIncludeDirectories)
-
-
-
-
- $(ExternalsDir)enet\include;%(AdditionalIncludeDirectories)
-
-
-
\ No newline at end of file
+
diff --git a/Source/Core/Common/Common.vcxproj b/Source/Core/Common/Common.vcxproj
index fdd3183587..00cbae4707 100644
--- a/Source/Core/Common/Common.vcxproj
+++ b/Source/Core/Common/Common.vcxproj
@@ -135,6 +135,9 @@
+
+ {cbc76802-c128-4b17-bf6c-23b08c313e5e}
+
{bdb6578b-0691-4e80-a46c-df21639fd3b8}
@@ -145,4 +148,4 @@
-
\ No newline at end of file
+
diff --git a/Source/Core/Common/TraversalClient.h b/Source/Core/Common/TraversalClient.h
index 7418aa8d25..0263d863fb 100644
--- a/Source/Core/Common/TraversalClient.h
+++ b/Source/Core/Common/TraversalClient.h
@@ -4,7 +4,7 @@
#include
#include
#include
-#include
+#include
#include "Common/Common.h"
#include "Common/Thread.h"
#include "Common/TraversalProto.h"
diff --git a/Source/Core/Core/Core.vcxproj b/Source/Core/Core/Core.vcxproj
index 226a45bf85..bf021338fc 100644
--- a/Source/Core/Core/Core.vcxproj
+++ b/Source/Core/Core/Core.vcxproj
@@ -446,6 +446,9 @@
{8ada04d7-6db1-4da4-ab55-64fb12a0997b}
+
+ {cbc76802-c128-4b17-bf6c-23b08c313e5e}
+
{349ee8f9-7d25-4909-aaf5-ff3fade72187}
@@ -482,9 +485,6 @@
{3de9ee35-3e91-4f27-a014-2866ad8c3fe3}
-
- {cbc76802-c128-4b17-bf6c-23b08c313e5e}
-
diff --git a/Source/VSProps/Base.props b/Source/VSProps/Base.props
index 9347780009..92759d4966 100644
--- a/Source/VSProps/Base.props
+++ b/Source/VSProps/Base.props
@@ -35,6 +35,7 @@
$(CoreDir);%(AdditionalIncludeDirectories)
$(ExternalsDir);%(AdditionalIncludeDirectories)
$(ExternalsDir)Bochs_disasm;%(AdditionalIncludeDirectories)
+ $(ExternalsDir)enet\include;%(AdditionalIncludeDirectories)
$(ExternalsDir)GL;%(AdditionalIncludeDirectories)
$(ExternalsDir)libpng;%(AdditionalIncludeDirectories)
$(ExternalsDir)libusb\libusb;%(AdditionalIncludeDirectories)