Skip to content

Commit

Permalink
cmake: exclude .clang-format from opae headers
Browse files Browse the repository at this point in the history
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 <peter.colberg@intel.com>
(cherry picked from commit 35ed295)
  • Loading branch information
pcolberg committed Feb 20, 2024
1 parent ac239b5 commit 5447d98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Expand Up @@ -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")
Expand Down

0 comments on commit 5447d98

Please sign in to comment.