summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-25 18:12:42 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-31 13:09:23 (GMT)
commit39ac889d636ee8ce083e00ab2c8351c6148150ef (patch)
tree9e70dc5ee95eaa8424533e9e8f04c0a2d2f964f7 /Source/cmakemain.cxx
parent7cf369fe276e011d4c9322153ae7c77d5124ca7e (diff)
downloadCMake-39ac889d636ee8ce083e00ab2c8351c6148150ef.zip
CMake-39ac889d636ee8ce083e00ab2c8351c6148150ef.tar.gz
CMake-39ac889d636ee8ce083e00ab2c8351c6148150ef.tar.bz2
cmake: Add trivial usage of libuv
This will serve to make sure cmake actually compiles and links against libuv.
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 1505d00..db6d51b 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -27,6 +27,10 @@
#include "cmcmd.h"
#include <cmsys/Encoding.hxx>
+#ifdef CMAKE_USE_LIBUV
+#include "cm_uv.h"
+#endif
+
#ifdef CMAKE_BUILD_WITH_CMAKE
static const char* cmDocumentationName[][2] = {
{ CM_NULLPTR, " cmake - Cross-Platform Makefile Generator." },
@@ -172,6 +176,9 @@ int main(int ac, char const* const* av)
#ifdef CMAKE_BUILD_WITH_CMAKE
cmDynamicLoader::FlushCache();
#endif
+#ifdef CMAKE_USE_LIBUV
+ uv_loop_close(uv_default_loop());
+#endif
return ret;
}