From d910c2cf710f4bb29b80f5fa00f032df154b4720 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Tue, 3 Sep 2024 14:14:33 +0000 Subject: [PATCH] Exclude dotfiles from install rules (#199) Fix #198 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a1da6a48..3a26d2e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -183,7 +183,9 @@ export(EXPORT ${PROJECT_NAME}-targets FILE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake") install(DIRECTORY ${SPARROW_INCLUDE_DIR}/sparrow - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + PATTERN ".clang-*" EXCLUDE + PATTERN "README.md" EXCLUDE) set(SPARROW_CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/cmake/${PROJECT_NAME}" CACHE STRING "install path for sparrowConfig.cmake")