Merge topic 'GNUInstallDirs-more-BSD'

956054ae GNUInstallDirs: All *BSDs use ${PREFIX}/{man,info} for man and info pages
This commit is contained in:
Brad King 2016-09-28 08:05:04 -04:00 committed by CMake Topic Stage
commit 8021f64029
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ if(NOT CMAKE_INSTALL_DATADIR)
set(CMAKE_INSTALL_DATADIR "${CMAKE_INSTALL_DATAROOTDIR}")
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
if(CMAKE_SYSTEM_NAME MATCHES "^(.*BSD|DragonFly)$")
if(NOT CMAKE_INSTALL_INFODIR)
set(CMAKE_INSTALL_INFODIR "" CACHE PATH "info documentation (info)")
set(CMAKE_INSTALL_INFODIR "info")