1361b0d
From c6b03126690439f5137e4a1090e81e93fd09df9a Mon Sep 17 00:00:00 2001
1361b0d
From: Mattias Ellert <mattias.ellert@physics.uu.se>
1361b0d
Date: Wed, 19 Aug 2020 20:17:37 +0200
1361b0d
Subject: [PATCH] Install headers with COMPONENT headers
1361b0d
1361b0d
---
1361b0d
 bindings/pyroot/cppyy/CPyCppyy/CMakeLists.txt | 4 +++-
1361b0d
 bindings/pyroot/pythonizations/CMakeLists.txt | 4 +++-
1361b0d
 2 files changed, 6 insertions(+), 2 deletions(-)
1361b0d
1361b0d
diff --git a/bindings/pyroot/cppyy/CPyCppyy/CMakeLists.txt b/bindings/pyroot/cppyy/CPyCppyy/CMakeLists.txt
1361b0d
index 00ce6c13b8..e23b439b3e 100644
1361b0d
--- a/bindings/pyroot/cppyy/CPyCppyy/CMakeLists.txt
1361b0d
+++ b/bindings/pyroot/cppyy/CPyCppyy/CMakeLists.txt
1361b0d
@@ -120,4 +120,6 @@ foreach(val RANGE ${how_many_pythons})
1361b0d
 endforeach()
1361b0d
 
1361b0d
 file(COPY ${headers} DESTINATION ${CMAKE_BINARY_DIR}/include/CPyCppyy)
1361b0d
-install(FILES ${headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/CPyCppyy)
1361b0d
+install(FILES ${headers}
1361b0d
+        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/CPyCppyy
1361b0d
+        COMPONENT headers)
1361b0d
diff --git a/bindings/pyroot/pythonizations/CMakeLists.txt b/bindings/pyroot/pythonizations/CMakeLists.txt
1361b0d
index 7827204396..377ec46916 100644
1361b0d
--- a/bindings/pyroot/pythonizations/CMakeLists.txt
1361b0d
+++ b/bindings/pyroot/pythonizations/CMakeLists.txt
1361b0d
@@ -159,6 +159,8 @@ install(DIRECTORY ${localruntimedir}/ROOT
1361b0d
         COMPONENT libraries)
1361b0d
 
1361b0d
 # Install headers required by pythonizations
1361b0d
-install(FILES ${PYROOT_EXTRA_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ROOT)
1361b0d
+install(FILES ${PYROOT_EXTRA_HEADERS}
1361b0d
+        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ROOT
1361b0d
+        COMPONENT headers)
1361b0d
 
1361b0d
 ROOT_ADD_TEST_SUBDIRECTORY(test)
1361b0d
-- 
1361b0d
2.26.2
1361b0d