Cmake build: Set LYX_DATA_SUBDIR in cache unconditionaly

The value is wrong if CMakeCache.txt already exists and the version is
changed inside configure.ac in AC_INIT()
This commit is contained in:
Kornel Benko 2024-05-18 10:27:54 +02:00
parent 05bb851adf
commit 6670870aa3

View File

@ -580,13 +580,11 @@ endif()
if(NOT LYX_DATA_SUBDIR)
if (WIN32)
set(LYX_DATA_SUBDIR "Resources/" CACHE STRING "Subdirectory for all lyx-system-data" FORCE)
else()
set(LYX_DATA_SUBDIR "share/${_lyx}/" CACHE STRING "Subdirectory for all lyx-system-data" FORCE)
endif()
endif()
set(LYX_ABS_INSTALLED_DATADIR "${CMAKE_INSTALL_PREFIX}/${LYX_DATA_SUBDIR}")
get_locale_destination(LYX_LOCALEDIR)