--- CMakeLists.txt.orig	2020-12-29 14:45:24 UTC
+++ CMakeLists.txt
@@ -105,17 +105,19 @@ add_subdirectory(galera)
 add_subdirectory(scripts/packages)
 add_subdirectory(wsrep/tests)
 
-install(FILES
-  ${CMAKE_SOURCE_DIR}/AUTHORS
-  ${CMAKE_SOURCE_DIR}/COPYING
-  ${CMAKE_SOURCE_DIR}/README
-  DESTINATION doc)
-install(FILES ${CMAKE_SOURCE_DIR}/asio/LICENSE_1_0.txt
-  DESTINATION doc
-  RENAME LICENSE.asio)
-install(FILES ${CMAKE_SOURCE_DIR}/chromium/LICENSE
-  DESTINATION doc
-  RENAME LICENSE.chromium)
+if (NOT CMAKE_SYSTEM MATCHES ".*BSD")
+  install(FILES
+    ${CMAKE_SOURCE_DIR}/AUTHORS
+    ${CMAKE_SOURCE_DIR}/COPYING
+    ${CMAKE_SOURCE_DIR}/README
+    DESTINATION doc)
+  install(FILES ${CMAKE_SOURCE_DIR}/asio/LICENSE_1_0.txt
+    DESTINATION doc
+    RENAME LICENSE.asio)
+  install(FILES ${CMAKE_SOURCE_DIR}/chromium/LICENSE
+    DESTINATION doc
+    RENAME LICENSE.chromium)
+endif()
 
 message(STATUS "")
 message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
