From 72699bc988ede12ed38dc64e4dd5426a628ecb1c Mon Sep 17 00:00:00 2001 From: orbea Date: Sun, 20 Mar 2016 23:02:59 -0700 Subject: [PATCH] MAN_DIR added --- CMakeLists.txt | 2 +- cmake/BuildParameters.cmake | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2504065492..21e9d28f00 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,7 +106,7 @@ if(PACKAGE_MODE) INSTALL(FILES "${CMAKE_SOURCE_DIR}/linux_various/PCSX2.xpm" DESTINATION "${CMAKE_INSTALL_PREFIX}/share/pixmaps") INSTALL(FILES "${CMAKE_SOURCE_DIR}/bin/docs/PCSX2_FAQ.pdf" DESTINATION "${DOC_DIR}") INSTALL(FILES "${CMAKE_SOURCE_DIR}/bin/docs/PCSX2_Readme.pdf" DESTINATION "${DOC_DIR}") - INSTALL(FILES "${CMAKE_SOURCE_DIR}/bin/docs/PCSX2.1" DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1/") + INSTALL(FILES "${CMAKE_SOURCE_DIR}/bin/docs/PCSX2.1" DESTINATION "${MAN_DIR}/man1") if(NOT DISABLE_PCSX2_WRAPPER) INSTALL(FILES "${CMAKE_SOURCE_DIR}/linux_various/PCSX2-linux.sh" DESTINATION "${BIN_DIR}") endif() diff --git a/cmake/BuildParameters.cmake b/cmake/BuildParameters.cmake index d091bd5384..fdec78b868 100644 --- a/cmake/BuildParameters.cmake +++ b/cmake/BuildParameters.cmake @@ -64,6 +64,10 @@ if(PACKAGE_MODE) set(DOC_DIR "${CMAKE_INSTALL_PREFIX}/share/doc/PCSX2") endif() + if(NOT DEFINED MAN_DIR) + set(MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man") + endif() + # Compile all source codes with those defines add_definitions(-DPLUGIN_DIR_COMPILATION=${PLUGIN_DIR} -DGAMEINDEX_DIR_COMPILATION=${GAMEINDEX_DIR} -DDOC_DIR_COMPILATION=${DOC_DIR}) endif()