Skip to content

Commit

Permalink
fix: install master project generated header files
Browse files Browse the repository at this point in the history
Header files (such as version.h), generated by the master project,
were not installed when the project is. They are now installed, similar
to the regular include files, as part of the `dev` component in
`ASAP_INSTALL_INCLUDE`.
  • Loading branch information
abdes committed Sep 19, 2022
1 parent 15b60d0 commit 3c5c162
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/AsapInstall.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ if(${META_PROJECT_ID}_INSTALL)
DESTINATION ${ASAP_INSTALL_MISC}
COMPONENT ${meta})

# Install generated header files
install(
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/${META_PROJECT_NAME}
DESTINATION ${ASAP_INSTALL_INCLUDE}
COMPONENT ${dev})

# Install master docs
string(MAKE_C_IDENTIFIER ${META_PROJECT_NAME} project_id)
string(TOLOWER ${project_id} project_id)
Expand Down

0 comments on commit 3c5c162

Please sign in to comment.