浏览代码

GNUInstallDirs: All *BSDs use ${PREFIX}/{man,info} for man and info pages

Dmitry Marakasov 9 年之前
父节点
当前提交
956054aeca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Modules/GNUInstallDirs.cmake

+ 1 - 1
Modules/GNUInstallDirs.cmake

@@ -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")