mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
GNUInstallDirs: Don't use BSD info and man paths on GNU/kFreeBSD
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
include(RunCMake)
|
||||
|
||||
if(SYSTEM_NAME MATCHES "^(.*BSD|DragonFly)$")
|
||||
if(SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$")
|
||||
set(EXPECT_BSD 1)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user