New CMake version fails with this error:
CMake error: install TARGETS target my_header_lib is exported but not all of its interface file sets are installed
To prevent this, I need to patch the install rule
Claus-iMac:d3e91bd4d5ecbedc9f73927e56449814005472d0 clausklein$ git diff
diff --git a/src/PackageProject.cmake b/src/PackageProject.cmake
index f272175..8210448 100644
--- a/src/PackageProject.cmake
+++ b/src/PackageProject.cmake
@@ -154,7 +154,9 @@ function(package_project)
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT lib
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
- PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_PackageProject_NAME}" COMPONENT dev)
+ PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_PackageProject_NAME}" COMPONENT dev
+ FILE_SET HEADERS # NOTE: required from CMake to install the FILE_SET HEADERS too!
+ )
# download ForwardArguments
FetchContent_Declare(
Claus-iMac:d3e91bd4d5ecbedc9f73927e56449814005472d0 clausklein$
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too