summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmThirdParty.h.in1
-rw-r--r--Utilities/cm_uv.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/Utilities/cmThirdParty.h.in b/Utilities/cmThirdParty.h.in
index 4c1177c..cb8f0d5 100644
--- a/Utilities/cmThirdParty.h.in
+++ b/Utilities/cmThirdParty.h.in
@@ -22,6 +22,7 @@
#cmakedefine CMAKE_USE_SYSTEM_LIBLZMA
#cmakedefine CMAKE_USE_SYSTEM_FORM
#cmakedefine CMAKE_USE_SYSTEM_JSONCPP
+#cmakedefine CMAKE_USE_SYSTEM_LIBUV
#cmakedefine CTEST_USE_XMLRPC
#endif
diff --git a/Utilities/cm_uv.h b/Utilities/cm_uv.h
index 63ff597..baa9bfc 100644
--- a/Utilities/cm_uv.h
+++ b/Utilities/cm_uv.h
@@ -12,6 +12,12 @@
#ifndef cm_uv_h
#define cm_uv_h
+/* Use the libuv library configured for CMake. */
+#include "cmThirdParty.h"
+#ifdef CMAKE_USE_SYSTEM_LIBUV
+#include <uv.h>
+#else
#include <cmlibuv/include/uv.h>
+#endif
#endif