cmake: Add trivial usage of libuv

This will serve to make sure cmake actually compiles and links against
libuv.
This commit is contained in:
Brad King 2016-08-25 14:12:42 -04:00
parent 7cf369fe27
commit 39ac889d63
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,10 @@
#include "cmcmd.h" #include "cmcmd.h"
#include <cmsys/Encoding.hxx> #include <cmsys/Encoding.hxx>
#ifdef CMAKE_USE_LIBUV
#include "cm_uv.h"
#endif
#ifdef CMAKE_BUILD_WITH_CMAKE #ifdef CMAKE_BUILD_WITH_CMAKE
static const char* cmDocumentationName[][2] = { static const char* cmDocumentationName[][2] = {
{ CM_NULLPTR, " cmake - Cross-Platform Makefile Generator." }, { 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); int ret = do_cmake(ac, av);
#ifdef CMAKE_BUILD_WITH_CMAKE #ifdef CMAKE_BUILD_WITH_CMAKE
cmDynamicLoader::FlushCache(); cmDynamicLoader::FlushCache();
#endif
#ifdef CMAKE_USE_LIBUV
uv_loop_close(uv_default_loop());
#endif #endif
return ret; return ret;
} }