mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Cmake build: Specify the correct value of 'PACKAGE' define in config.h
This was wrong in case where no program suffix was allowed Spotted by Scott.
This commit is contained in:
parent
16d39b1f83
commit
4f1095cdbc
@ -461,7 +461,14 @@ else()
|
||||
set(SYSTEM_DATADIR "${CMAKE_INSTALL_PREFIX}")
|
||||
endif()
|
||||
|
||||
if(LYX_PACKAGE_SUFFIX)
|
||||
# The define below allows lyx-executable to find its default configuration files
|
||||
# see routines
|
||||
# Package::messages_file()
|
||||
# get_default_user_support_dir()
|
||||
# relative_system_support_dir()
|
||||
# in src/support/Package.cpp
|
||||
#
|
||||
if(LYX_PROGRAM_SUFFIX)
|
||||
set(PACKAGE ${PACKAGE_BASE}${LYX_INSTALL_SUFFIX})
|
||||
else()
|
||||
set(PACKAGE ${PACKAGE_BASE})
|
||||
|
Loading…
Reference in New Issue
Block a user