The default behaviour is that it's an error to specify different GIT_TAG's in two add_pkg commands. Also, this is an error:
add_pkg(foo ...) # not GIT_TAG
add_pkg(foo GIT_TAG <something>)
But this is not:
add_pkg(foo GIT_TAG <something>)
add_pkg(foo ...) # not GIT_TAG
Now GIT_TAG_IGNORE can be used to suppress an error:
add_pkg(foo GIT_TAG branch1 GIT_TAG_IGNORE branch2)
add_pkg(foo GIT_TAG branch2) # branch2 will have no effect
GIT_TAG_IGNORE would be effective only in the main project, that is, in the top-level deps.cmake or in other files included from the top-level deps.cmake but reside in or below deps.cmake's parent directory.
add a special new option to
add_pkg
anddef_pkg
:The default behaviour is that it's an error to specify different
GIT_TAG
's in twoadd_pkg
commands. Also, this is an error:But this is not:
Now GIT_TAG_IGNORE can be used to suppress an error:
GIT_TAG_IGNORE would be effective only in the main project, that is, in the top-level deps.cmake or in other files included from the top-level deps.cmake but reside in or below deps.cmake's parent directory.