GNUInstallDirs: Don't use BSD info and man paths on GNU/kFreeBSD

This commit is contained in:
James Clarke
2018-10-21 09:59:11 +01:00
committed by Brad King
parent fd02538974
commit b2d7ab8bd1
2 changed files with 2 additions and 2 deletions

View File

@@ -276,7 +276,7 @@ _GNUInstallDirs_cache_path(CMAKE_INSTALL_DATAROOTDIR "share"
_GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_DATADIR "${CMAKE_INSTALL_DATAROOTDIR}"
"Read-only architecture-independent data (DATAROOTDIR)")
if(CMAKE_SYSTEM_NAME MATCHES "^(.*BSD|DragonFly)$")
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"

View File

@@ -1,6 +1,6 @@
include(RunCMake)
if(SYSTEM_NAME MATCHES "^(.*BSD|DragonFly)$")
if(SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$")
set(EXPECT_BSD 1)
endif()