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
This commit is contained in:
parent
ae4f837d5a
commit
1e660bc583
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue