From 5447d98e963f1279ec5fc0baf042851b3ae95918 Mon Sep 17 00:00:00 2001 From: Peter Colberg Date: Tue, 20 Feb 2024 18:03:23 -0500 Subject: [PATCH] cmake: exclude .clang-format from opae headers This resolves an rpmbuild failure when building packages from a source tarball created with git archive. RPM build errors: Installed (but unpackaged) file(s) found: /usr/include/opae/cxx/.clang-format Signed-off-by: Peter Colberg (cherry picked from commit 35ed295cef95bddef07841655b564e355b7e81f6) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2597202d2aaa..a0d5a4c0358e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -881,7 +881,8 @@ endif(NOT DEFINED OPAE_MINIMAL_BUILD) ############################################################################ install(DIRECTORY include/opae DESTINATION include - COMPONENT libopaeheaders) + COMPONENT libopaeheaders + PATTERN .clang-format EXCLUDE) configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/config/config.h.in" "${CMAKE_BINARY_DIR}/include/config.h")