Skip to content

Commit 3b40429

Browse files
authored
fix: GIT_TAG not parsed inside CPMFindPackage (#159)
When using CPMFindPackage, if no VERSION is given then GIT_TAG is used as fallback if defined, which is a good idea. The issue is that GIT_TAG is missing inside the oneValueArgs variable therefore GIT_TAG is not parsed. This is resolved by this little change.
1 parent 18e09b0 commit 3b40429

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/CPM.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ function(CPMFindPackage)
119119
set(oneValueArgs
120120
NAME
121121
VERSION
122+
GIT_TAG
122123
FIND_PACKAGE_ARGUMENTS
123124
)
124125

0 commit comments

Comments
 (0)