summaryrefslogtreecommitdiffstats
path: root/Modules/GNUInstallDirs.cmake
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@amdmi3.ru>2021-11-11 14:30:45 (GMT)
committerBrad King <brad.king@kitware.com>2021-11-30 17:16:37 (GMT)
commitc07bba27302960fc2f35b6a9e00eab8b32ca9a49 (patch)
tree05c5784754172a497bab895966331c6904e5e878 /Modules/GNUInstallDirs.cmake
parent63b91058d756eb16279ae3c31c0ffa47292131cb (diff)
downloadCMake-c07bba27302960fc2f35b6a9e00eab8b32ca9a49.zip
CMake-c07bba27302960fc2f35b6a9e00eab8b32ca9a49.tar.gz
CMake-c07bba27302960fc2f35b6a9e00eab8b32ca9a49.tar.bz2
GNUInstallDirs: Update CMAKE_INSTALL_MANDIR for FreeBSD
FreeBSD has switched from PREFIX/man ro PREFIX/share/man see https://cgit.freebsd.org/ports/tree/CHANGES entry 20200115. Fixes: #22883
Diffstat (limited to 'Modules/GNUInstallDirs.cmake')
-rw-r--r--Modules/GNUInstallDirs.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GNUInstallDirs.cmake b/Modules/GNUInstallDirs.cmake
index 489c233..851943d 100644
--- a/Modules/GNUInstallDirs.cmake
+++ b/Modules/GNUInstallDirs.cmake
@@ -330,7 +330,7 @@ else()
"Info documentation (DATAROOTDIR/info)")
endif()
-if(CMAKE_SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$")
+if(CMAKE_SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$" AND NOT CMAKE_SYSTEM_NAME MATCHES "^(FreeBSD)$")
_GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_MANDIR "man"
"Man documentation (man)")
else()