summaryrefslogtreecommitdiff
path: root/doc/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-03-04 11:29:53 +0100
committerMartin Michlmayr <tbm@cyrius.com>2023-03-05 09:00:56 +0800
commitb9a69d3c5b6da95c94aaedc40f5420516ec33b2e (patch)
treef3d4a431657a5f768a9700981829525022c71635 /doc/CMakeLists.txt
parent5c107db1b5fb69245075ee324544a853637d355c (diff)
downloadfork-ledger-b9a69d3c5b6da95c94aaedc40f5420516ec33b2e.tar.gz
fork-ledger-b9a69d3c5b6da95c94aaedc40f5420516ec33b2e.tar.bz2
fork-ledger-b9a69d3c5b6da95c94aaedc40f5420516ec33b2e.zip
Refactor Ledger version info into cmake/LedgerVersion.cmake
so it can be re-used when generating the version.texi for ledger-website builds.
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r--doc/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index bb129415..a13eeb92 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -5,8 +5,14 @@
########################################################################
+cmake_minimum_required(VERSION 3.0)
+
+# Point CMake at any custom modules we may ship
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
+include(LedgerVersion)
+
configure_file(
- ${PROJECT_SOURCE_DIR}/doc/version.texi.in
+ ${CMAKE_CURRENT_SOURCE_DIR}/version.texi.in
${PROJECT_BINARY_DIR}/doc/version.texi)
if (USE_DOXYGEN)