From 1e660bc583e20918cba7bf53f6beb74388be7042 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Fri, 17 Jan 2025 06:25:33 +0100 Subject: [PATCH] CMakeLists.txt: Always set data_version Otherwise, cpack/debian.cmake would be unable to propagate the required version for speed-dreams-data to CPACK_DEBIAN_PACKAGE_DEPENDS [1] when SD_ASSUME_DATADIR is defined. [1]: https://cmake.org/cmake/help/latest/cpack_gen/deb.html#variable:CPACK_DEBIAN_PACKAGE_DEPENDS --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e2357126a..002b2272a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,7 @@ IF(APPLE) ENDIF(APPLE) option(SD_ASSUME_DATADIR "Assume default directory for speed-dreams-data") +set(data_version 2.3.0) include(GNUInstallDirs) if(SD_ASSUME_DATADIR) @@ -48,7 +49,6 @@ elseif(EXISTS ${CMAKE_CURRENT_LIST_DIR}/speed-dreams-data/CMakeLists.txt) set(SD_DATADIR_ABS ${CMAKE_CURRENT_SOURCE_DIR}/speed-dreams-data/data) message(STATUS "Data directory: ${SD_DATADIR_ABS} (in-tree)") else() - set(data_version 2.3.0) find_package(speed-dreams-data ${data_version} QUIET) if(NOT SD_DATADIR)