From 39ac889d636ee8ce083e00ab2c8351c6148150ef Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 25 Aug 2016 14:12:42 -0400 Subject: [PATCH] cmake: Add trivial usage of libuv This will serve to make sure cmake actually compiles and links against libuv. --- Source/cmakemain.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 1505d00b2..db6d51b3a 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -27,6 +27,10 @@ #include "cmcmd.h" #include +#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." }, @@ -171,6 +175,9 @@ int main(int ac, char const* const* av) int ret = do_cmake(ac, av); #ifdef CMAKE_BUILD_WITH_CMAKE cmDynamicLoader::FlushCache(); +#endif +#ifdef CMAKE_USE_LIBUV + uv_loop_close(uv_default_loop()); #endif return ret; }