Cmake build: Move default for man-pages to /usr/local/man

and at the same time make it configurable.
Until now it was hard wired to a subdirectory of installed lyx.
This commit is contained in:
Kornel Benko 2013-09-06 14:56:31 +02:00
parent 689390592c
commit 0a779e9543
2 changed files with 4 additions and 1 deletions

View File

@ -387,6 +387,9 @@ set(LYX_LOCALEDIR "locale")
set(LYX_ABS_INSTALLED_LOCALEDIR "${LYX_ABS_INSTALLED_DATADIR}/${LYX_DATA_SUBDIR}${LYX_LOCALEDIR}")
set(LYX_ABS_TOP_SRCDIR "${TOP_SRC_DIR}")
set(LYX_MAN_DIR "/usr/local/man" CACHE STRING
"Install location for man pages.")
mark_as_advanced(LYX_MAN_DIR)
if(LYX_INSTALL AND WIN32)
message(STATUS "Configuring NSIS files")

View File

@ -27,7 +27,7 @@ endforeach(_mn)
ADD_CUSTOM_TARGET(man ALL DEPENDS ${_manuals})
install(FILES ${_manuals} DESTINATION ${LYX_DATA_SUBDIR}man/man1)
install(FILES ${_manuals} DESTINATION ${LYX_MAN_DIR}/man1)
# ADD_MANUALS("lyx")