gnucash maint: [app-utils] fix dependency chain

Christopher Lam clam at code.gnucash.org
Thu Dec 24 17:17:39 EST 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/455ae59a (commit)
	from  https://github.com/Gnucash/gnucash/commit/0510ecfe (commit)



commit 455ae59a5611f726bd90b92bf9e2f0680f650d04
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Thu Dec 24 10:43:07 2020 +0800

    [app-utils] fix dependency chain

diff --git a/libgnucash/app-utils/CMakeLists.txt b/libgnucash/app-utils/CMakeLists.txt
index 39c12d694..1b713a8d8 100644
--- a/libgnucash/app-utils/CMakeLists.txt
+++ b/libgnucash/app-utils/CMakeLists.txt
@@ -169,13 +169,23 @@ install(FILES ${app_utils_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/gnuca
 # And now handle scheme files
 
 set (app_utils_SCHEME_1
-    business-options.scm
     c-interface.scm
     date-utilities.scm
-    options.scm
     fin.scm
 )
 
+set (app_utils_SCHEME_1a
+    options.scm
+)
+
+set (app_utils_SCHEME_1b
+    business-options.scm
+)
+
+set (app_utils_SCHEME_1c
+    business-prefs.scm
+)
+
 set (app_utils_SCHEME_2
     app-utils.scm
 )
@@ -190,12 +200,25 @@ gnc_add_scheme_targets(scm-app-utils-1
     OUTPUT_DIR "gnucash/app-utils"
     DEPENDS "${GUILE_DEPENDS}"
     MAKE_LINKS)
-  gnc_add_scheme_targets(scm-bus-prefs
-    SOURCES "business-prefs.scm"
+
+gnc_add_scheme_targets(scm-app-utils-1a
+    SOURCES "${app_utils_SCHEME_1a}"
     OUTPUT_DIR "gnucash/app-utils"
     DEPENDS "scm-app-utils-1"
     MAKE_LINKS)
 
+gnc_add_scheme_targets(scm-app-utils-1b
+    SOURCES "${app_utils_SCHEME_1b}"
+    OUTPUT_DIR "gnucash/app-utils"
+    DEPENDS "scm-app-utils-1a"
+    MAKE_LINKS)
+
+gnc_add_scheme_targets(scm-bus-prefs
+    SOURCES "${app_utils_SCHEME_1c}"
+    OUTPUT_DIR "gnucash/app-utils"
+    DEPENDS "scm-app-utils-1b"
+    MAKE_LINKS)
+
 gnc_add_scheme_targets(scm-app-utils-2
     SOURCES "${app_utils_SCHEME_2}"
     OUTPUT_DIR "gnucash"
@@ -213,8 +236,15 @@ gnc_add_scheme_deprecated_module (
 add_custom_target(scm-app-utils ALL DEPENDS scm-app-utils-2 scm-app-utils-1)
 
 set_local_dist(app_utils_DIST_local
-        ${app_utils_ALL_SOURCES} ${app_utils_SCHEME_1} ${app_utils_SCHEME_2} ${app_utils_SCHEME_3}
-        app-utils.i CMakeLists.txt gnc-help-utils.c)
+    ${app_utils_ALL_SOURCES}
+    ${app_utils_SCHEME_1}
+    ${app_utils_SCHEME_1a}
+    ${app_utils_SCHEME_1b}
+    ${app_utils_SCHEME_1c}
+    ${app_utils_SCHEME_2}
+    ${app_utils_SCHEME_3}
+    app-utils.i CMakeLists.txt gnc-help-utils.c)
+
 set(app_utils_DIST
     ${app_utils_DIST_local}
     ${test_app_utils_DIST}



Summary of changes:
 libgnucash/app-utils/CMakeLists.txt | 42 +++++++++++++++++++++++++++++++------
 1 file changed, 36 insertions(+), 6 deletions(-)



More information about the gnucash-changes mailing list