diff options
author | Brad King <brad.king@kitware.com> | 2016-08-16 21:01:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-08-31 13:05:14 (GMT) |
commit | 8a5beef32e007e69a8b348afa8ed2bddd760199a (patch) | |
tree | 81d0a8f7dbd7302ddbe5cbee08552abd8309c9ca /Utilities | |
parent | e56aa462976f80762712519a4cf653b8c45bf3db (diff) | |
download | CMake-8a5beef32e007e69a8b348afa8ed2bddd760199a.zip CMake-8a5beef32e007e69a8b348afa8ed2bddd760199a.tar.gz CMake-8a5beef32e007e69a8b348afa8ed2bddd760199a.tar.bz2 |
Add option to build CMake against a system libuv
Create a CMAKE_USE_SYSTEM_LIBUV option.
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmThirdParty.h.in | 1 | ||||
-rw-r--r-- | Utilities/cm_uv.h | 6 |
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 |