mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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:
parent
05bb851adf
commit
6670870aa3
@ -580,12 +580,10 @@ 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()
|
||||
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()
|
||||
|
||||
set(LYX_ABS_INSTALLED_DATADIR "${CMAKE_INSTALL_PREFIX}/${LYX_DATA_SUBDIR}")
|
||||
|
Loading…
Reference in New Issue
Block a user