From 3222f30d2a7e68e85322efb40620c9177817453f Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Thu, 23 Mar 2023 19:31:34 +0100 Subject: [PATCH] Make Qt5/Qt6 versions fully coinstallable Add version to the include path to make Qt5 and Qt6 versions coinstallable --- QXlsx/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QXlsx/CMakeLists.txt b/QXlsx/CMakeLists.txt index 7207f943..4fa7f7f1 100644 --- a/QXlsx/CMakeLists.txt +++ b/QXlsx/CMakeLists.txt @@ -193,7 +193,7 @@ install(TARGETS QXlsx EXPORT ${EXPORT_NAME}Targets DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT devel - PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/QXlsx COMPONENT devel + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/QXlsxQt${QT_VERSION_MAJOR} COMPONENT devel ) install(EXPORT ${EXPORT_NAME}Targets