Skip to content

Commit

Permalink
Do not install CMakeLists.txt in loader/register (#123)
Browse files Browse the repository at this point in the history
* Do not install CMakeLists.txt in loader/register

By including the installation of a whole directory in the source code
for loader/register, the buildsystem is installing the CMakeLists.txt
files that are included in these directories. Exclude them from the
final installation by using the EXCLUDE clause in CMake.

Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero authored Sep 12, 2023
1 parent ec0bd40 commit 0b62971
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion loader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ endif()

install(
DIRECTORY include/
DESTINATION ${IGN_INCLUDE_INSTALL_DIR_FULL})
DESTINATION ${IGN_INCLUDE_INSTALL_DIR_FULL}
PATTERN "CMakeLists.txt" EXCLUDE)

#============================================================================
# ign command line support
Expand Down
3 changes: 2 additions & 1 deletion register/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ ign_add_component(register INTERFACE)

install(
DIRECTORY include/
DESTINATION ${IGN_INCLUDE_INSTALL_DIR_FULL})
DESTINATION ${IGN_INCLUDE_INSTALL_DIR_FULL}
PATTERN "CMakeLists.txt" EXCLUDE)

0 comments on commit 0b62971

Please sign in to comment.