From 11748750fb8b6bcfb81459a9ba5c618a1aac017a Mon Sep 17 00:00:00 2001 From: Raphael Graf Date: Tue, 3 Mar 2020 06:33:24 +0100 Subject: [PATCH] Fix manpage install path (CMake) (#439) --- CMakeLists.txt | 1 + help/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e545cb7b..f6ca056b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -357,6 +357,7 @@ set( _LIBDIR "${CMAKE_INSTALL_LIBDIR}/audacity" ) set( _RPATH "\$ORIGIN/../${_LIBDIR}" ) set( _DATADIR "${CMAKE_INSTALL_DATADIR}" ) set( _PKGDATA "${_DATADIR}/audacity/" ) +set( _MANDIR "${CMAKE_INSTALL_MANDIR}" ) # Precreate the lib and lib64 directories so we can make then the same if( NOT EXISTS "${CMAKE_BINARY_DIR}/lib" ) diff --git a/help/CMakeLists.txt b/help/CMakeLists.txt index 28588cf8f..43a771466 100755 --- a/help/CMakeLists.txt +++ b/help/CMakeLists.txt @@ -38,7 +38,7 @@ if( NOT "${CMAKE_GENERATOR}" MATCHES "Xcode|Visual Studio*" ) install( DIRECTORY "${dst}" OPTIONAL DESTINATION "${_DATADIR}/audacity/help" ) install( FILES "${_SRCDIR}/audacity.1" - DESTINATION "${_DATADIR}/man/man.1" ) + DESTINATION "${_MANDIR}/man1" ) install( FILES "${_SRCDIR}/audacity.appdata.xml" DESTINATION "${_DATADIR}/appdata" ) endif()