From fd8d26a7131bb15ce5f877328545911c36d1500e Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 4 Jul 2019 15:17:59 +0200 Subject: third-party: fix warning with (un)bundled libtermkey/unibilium (#10416) Fixes warning with: > cmake -S third-party -B .deps -DUSE_BUNDLED=OFF -DUSE_BUNDLED_UNIBILIUM=0 -DUSE_BUNDLED_LIBTERMKEY=1 > The dependency target "unibilium" of target "libtermkey" does not exist. --- third-party/CMakeLists.txt | 3 +++ third-party/cmake/BuildLibtermkey.cmake | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index 5db8e10a33..b2b05e1175 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -191,6 +191,9 @@ endif() if(USE_BUNDLED_LIBTERMKEY) include(BuildLibtermkey) + if(USE_BUNDLED_UNIBILIUM) + add_dependencies(libtermkey unibilium) + endif() endif() if(USE_BUNDLED_LIBVTERM) diff --git a/third-party/cmake/BuildLibtermkey.cmake b/third-party/cmake/BuildLibtermkey.cmake index da65c87972..b2332ed65a 100644 --- a/third-party/cmake/BuildLibtermkey.cmake +++ b/third-party/cmake/BuildLibtermkey.cmake @@ -53,4 +53,3 @@ ExternalProject_Add(libtermkey endif() list(APPEND THIRD_PARTY_DEPS libtermkey) -add_dependencies(libtermkey unibilium) -- cgit