Add option to build CMake against a system libuv

Create a CMAKE_USE_SYSTEM_LIBUV option.
This commit is contained in:
Brad King
2016-08-16 17:01:23 -04:00
parent e56aa46297
commit 8a5beef32e
3 changed files with 25 additions and 4 deletions

View File

@@ -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

View File

@@ -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