diff options
author | Brad King <brad.king@kitware.com> | 2018-11-13 16:55:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-11-13 18:35:35 (GMT) |
commit | 4c0d97dd98805a5d9fc73ab9818a653888c16103 (patch) | |
tree | 2e6e6c6a9a3b491f41c295846a3e4cc259d638d1 /Modules/GNUInstallDirs.cmake | |
parent | 1b8f0ca5154c9fe8122b31e25dac65a4df94f5b1 (diff) | |
download | CMake-4c0d97dd98805a5d9fc73ab9818a653888c16103.zip CMake-4c0d97dd98805a5d9fc73ab9818a653888c16103.tar.gz CMake-4c0d97dd98805a5d9fc73ab9818a653888c16103.tar.bz2 |
GNUInstallDirs: Split "info" and "man" default logic
The conditions may soon differ.
Diffstat (limited to 'Modules/GNUInstallDirs.cmake')
-rw-r--r-- | Modules/GNUInstallDirs.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/GNUInstallDirs.cmake b/Modules/GNUInstallDirs.cmake index 48d830f..49d36f6 100644 --- a/Modules/GNUInstallDirs.cmake +++ b/Modules/GNUInstallDirs.cmake @@ -280,11 +280,15 @@ _GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_DATADIR "${CMAKE_INSTALL_DATAR if(CMAKE_SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$") _GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_INFODIR "info" "Info documentation (info)") - _GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_MANDIR "man" - "Man documentation (man)") else() _GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_INFODIR "${CMAKE_INSTALL_DATAROOTDIR}/info" "Info documentation (DATAROOTDIR/info)") +endif() + +if(CMAKE_SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$") + _GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_MANDIR "man" + "Man documentation (man)") +else() _GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_MANDIR "${CMAKE_INSTALL_DATAROOTDIR}/man" "Man documentation (DATAROOTDIR/man)") endif() |