summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-25 10:49:51 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-25 11:08:36 +0200
commitafbfb8b5792fb1e8b8bf5777576680f1a4f0cd08 (patch)
treef227e982d5f24c7ed5057ed209dafea01b78c7c6
parent872a334c19615873e796175158bb93420f439492 (diff)
downloadmana-afbfb8b5792fb1e8b8bf5777576680f1a4f0cd08.tar.gz
mana-afbfb8b5792fb1e8b8bf5777576680f1a4f0cd08.tar.bz2
mana-afbfb8b5792fb1e8b8bf5777576680f1a4f0cd08.tar.xz
mana-afbfb8b5792fb1e8b8bf5777576680f1a4f0cd08.zip
CMake: Fixed customization of GNUInstallDirs
We need to set the custom values before including GNUInstallDirs, so that GNUInstallDirs will set the CMAKE_INSTALL_FULL_<dir> variables correctly. Fixes breakage in aecbf876cd0a7894396a2e5034af9d93bf028aa0.
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8e9f865..b39ddc7e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,8 +26,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
# where to look for cmake modules
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules)
-include(GNUInstallDirs)
-
find_package(Gettext)
option(WITH_OPENGL "Enable OpenGL support" ON)
@@ -44,9 +42,11 @@ elseif(APPLE)
set(CMAKE_INSTALL_DATADIR "${CMAKE_INSTALL_DATAROOTDIR}/Resources")
set(CMAKE_INSTALL_LOCALEDIR "${CMAKE_INSTALL_DATADIR}/Translations")
else()
- set(CMAKE_INSTALL_DATADIR ${CMAKE_INSTALL_DATAROOTDIR}/mana)
+ set(CMAKE_INSTALL_DATADIR "share/mana")
endif()
+include(GNUInstallDirs)
+
add_subdirectory(data)
if(ENABLE_MANASERV)