From 744677c3a6f3e6c1c463fe55b7b5408355ffe89b Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 31 Dec 2024 08:18:04 +0100 Subject: [PATCH] speed-dreams-data.cmake.in: Set SD_DATADIR_ABS Relative paths (typically, `share/games/speed-dreams-2`) should be looked up before absolute paths, since the install prefix for Windows and macOS builds is decided by the end user, and not the build system. --- cmake/speed-dreams-data.cmake.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/speed-dreams-data.cmake.in b/cmake/speed-dreams-data.cmake.in index 82f0d500..bafa8e4d 100644 --- a/cmake/speed-dreams-data.cmake.in +++ b/cmake/speed-dreams-data.cmake.in @@ -1,3 +1,4 @@ @PACKAGE_INIT@ -set_and_check(SD_DATADIR "@PACKAGE_datadir@") +set_and_check(SD_DATADIR_ABS "@PACKAGE_datadir@") +set(SD_DATADIR "@datadir@") check_required_components(speed-dreams-data)