Skip to content

Ignore empty subdirectory - #12

Merged
pkestene merged 2 commits into
mainfrom
pkestene/features/ignore_empty_subdirectory
Jul 4, 2026
Merged

Ignore empty subdirectory#12
pkestene merged 2 commits into
mainfrom
pkestene/features/ignore_empty_subdirectory

Conversation

@pkestene

@pkestene pkestene commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Add cmake macro add_subdirectory_if_not_empty wrapping add_subdirectory which allows to have empty subdirectory.

This is useful if one doesn't want to populate all git submodules (e.g. to save space on disk) or work with some private git submodules (users that don't have access to those private submodules can just deinit them).

@pkestene
pkestene merged commit e3e8e31 into main Jul 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant