mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-12-22 00:01:08 -05:00
Don't warn about dirty source trees when a PATCH_COMMAND is provided (#401)
The patch command will always cause a dirty source tree, which is expected and not a cause for concern.
This commit is contained in:
parent
65c760a840
commit
63d0de7114
@ -712,7 +712,7 @@ function(CPMAddPackage)
|
|||||||
)
|
)
|
||||||
cpm_get_fetch_properties("${CPM_ARGS_NAME}")
|
cpm_get_fetch_properties("${CPM_ARGS_NAME}")
|
||||||
|
|
||||||
if(DEFINED CPM_ARGS_GIT_TAG)
|
if(DEFINED CPM_ARGS_GIT_TAG AND NOT (PATCH_COMMAND IN_LIST CPM_ARGS_UNPARSED_ARGUMENTS))
|
||||||
# warn if cache has been changed since checkout
|
# warn if cache has been changed since checkout
|
||||||
cpm_check_git_working_dir_is_clean(${download_directory} ${CPM_ARGS_GIT_TAG} IS_CLEAN)
|
cpm_check_git_working_dir_is_clean(${download_directory} ${CPM_ARGS_GIT_TAG} IS_CLEAN)
|
||||||
if(NOT ${IS_CLEAN})
|
if(NOT ${IS_CLEAN})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user