ports/finance/ktoblzcheck-data/files/patch-src_CMakeLists.txt
Jason E. Hale fb53adf40f finance/ktoblzcheck: Update to 1.59
The bank data is now a separate project to thematically distinguish it
from the libraries and applications, and to simplify the build system:
finance/ktoblzcheck-data
2025-06-27 17:43:43 -04:00

18 lines
733 B
Plaintext

Set VALID_END_DATE via the port Makefile. This would otherwise only be set
if the CMake argument ENABLE_BANKDATA_DOWNLOAD is true, but we cannot download
files during the build process. This value needs to be defined as the last day
the bank data is valid in %d.%m.%Y format to enable the custom commands/targets
that build that databases.
--- src/CMakeLists.txt.orig 2025-05-15 11:18:20 UTC
+++ src/CMakeLists.txt
@@ -40,7 +40,7 @@ message(STATUS "Using bank data db ${BANKDATA_TEST_DBP
message(STATUS "Using bank data db ${BANKDATA_CH_DBPATH}")
message(STATUS "Using bank data db ${BANKDATA_TEST_DBPATH}")
-set(VALID_END_DATE "")
+set(VALID_END_DATE "%%BANKDATA_END_DATE%%")
if(ENABLE_BANKDATA_DOWNLOAD)
extract_date(