Skip to content

Commit 9b5dc4d

Browse files
authored
Workaround: do not download unused submodules for CPM package (#964)
1 parent ca58af3 commit 9b5dc4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ManiVault/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ CPMAddPackage(
168168
NAME valijson
169169
GITHUB_REPOSITORY tristanpenman/valijson
170170
GIT_TAG v1.0.6
171+
#GIT_SUBMODULES "" # Does not yet work with CPM, see workaround from https://github.com/cpm-cmake/CPM.cmake/pull/461#issuecomment-1665044141
172+
GIT_SUBMODULES "doc" # list an existing subdir from the repo to not download any submodules
171173
DOWNLOAD_ONLY YES
172174
OPTIONS "VALIJSON_BUILD_TESTS OFF" "VALIJSON_USE_EXCEPTIONS ON"
173175
)

0 commit comments

Comments
 (0)