From 6591cb75e0951419879e58ef63829729b649ae88 Mon Sep 17 00:00:00 2001 From: Buschmann Date: Fri, 25 Feb 2022 18:58:17 +0100 Subject: [PATCH] Better CMake variable default values (#56) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ac2b2f..41b0014 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ option(BUILD_SHARED_LIBS "Enable the build of shared libraries" ON) option(ENABLE_MAINTAINER_FLAGS "Enables some build flags used for development" OFF) option(BUILD_DOCS "Enable the build of doxygen docs" OFF) option(BUILD_DOCS_QUIET "Tell doxygen to be quiet while building the documentation." OFF) -set(LIBFUOTEN_I18NDIR "${LIBFUOTEN_I18NDIR}" CACHE PATH "Directory to install translations") +set(LIBFUOTEN_I18NDIR "${CMAKE_INSTALL_DATADIR}/libFuotenQt${QT_VERSION_MAJOR}/translations" CACHE PATH "Directory to install translations") configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/fuoten-config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/FuotenQt${QT_VERSION_MAJOR}Config.cmake