From cf202b74db91133d4861c5cc8952eb0f9511dc83 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 26 Mar 2017 00:22:15 +0100 Subject: [PATCH] build: Do not ref `libuv` CMake target if USE_BUNDLED_LIBUV=OFF. (#6363) CMake Warning: The dependency target "libuv" of target "luv-static" does not exist. (CMP0046) Closes #6355 --- third-party/cmake/BuildLuv.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/third-party/cmake/BuildLuv.cmake b/third-party/cmake/BuildLuv.cmake index 8ba4a0b41b..2a786dd8f3 100644 --- a/third-party/cmake/BuildLuv.cmake +++ b/third-party/cmake/BuildLuv.cmake @@ -87,5 +87,9 @@ BuildLuv(PATCH_COMMAND ${LUV_PATCH_COMMAND} INSTALL_COMMAND ${LUV_INSTALL_COMMAND}) list(APPEND THIRD_PARTY_DEPS luv-static) -add_dependencies(luv-static luajit) -add_dependencies(luv-static libuv) +if(USE_BUNDLED_LUAJIT) + add_dependencies(luv-static luajit) +endif() +if(USE_BUNDLED_LIBUV) + add_dependencies(luv-static libuv) +endif()