You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current version of the LibTemplateCmakeCMakeLists.txt uses PUBLIC_HEADER to list and install the header of the library.
While this approach is clean and straightforward, the process does not preserve the header folder hierarchy and, instead, install all header files in the same directory.
A simple workaround is to delete PUBLIC_HEADER property and use a install(DIRECTORY /path/of/include/dir DESTINATION /install/path/of/include/dir).
Is this solution sufficiently clean and satisfactory for most of the situation?
While this solution works smoothly, it undermines how to (I quote):
Specify public header files in a FRAMEWORK shared library target.
The text was updated successfully, but these errors were encountered:
The current version of the
LibTemplateCmake
CMakeLists.txt usesPUBLIC_HEADER
to list and install the header of the library.While this approach is clean and straightforward, the process does not preserve the header folder hierarchy and, instead, install all header files in the same directory.
A simple workaround is to delete
PUBLIC_HEADER
property and use ainstall(DIRECTORY /path/of/include/dir DESTINATION /install/path/of/include/dir)
.Is this solution sufficiently clean and satisfactory for most of the situation?
While this solution works smoothly, it undermines how to (I quote):
The text was updated successfully, but these errors were encountered: