From fa353e9f4a173573c9bdc365145c5a50c51b3c5b Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 18 Apr 2021 17:01:50 +0100 Subject: [PATCH] Add missing dependencies on generated source files. The utils library shouldn't be built until cmake_commit.c exists, and similarly with the charset library and sbcsdat.c. --- CMakeLists.txt | 1 + charset/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a41f7bf3..d617e387 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,7 @@ add_library(utils STATIC utils/x11_make_greeting.c utils/x11_parse_ip.c ${GENERATED_COMMIT_C}) +add_dependencies(utils cmake_commit_c) add_library(logging OBJECT logging.c) diff --git a/charset/CMakeLists.txt b/charset/CMakeLists.txt index 22cc7a14..4ff5bb8a 100644 --- a/charset/CMakeLists.txt +++ b/charset/CMakeLists.txt @@ -27,3 +27,4 @@ add_library(charset STATIC toucs.c utf8.c xenc.c) +add_dependencies(charset generated_sbcsdat_c)