Merge topic 'ExternalProject-svn-auth-blank'
ecd11a2
ExternalProject: Allow blank SVN_USERNAME/SVN_PASSWORD (#14128)
This commit is contained in:
commit
e855dd54df
|
@ -1251,10 +1251,10 @@ function(_ep_add_download_command name)
|
||||||
get_filename_component(work_dir "${source_dir}" PATH)
|
get_filename_component(work_dir "${source_dir}" PATH)
|
||||||
set(comment "Performing download step (SVN checkout) for '${name}'")
|
set(comment "Performing download step (SVN checkout) for '${name}'")
|
||||||
set(svn_user_pw_args "")
|
set(svn_user_pw_args "")
|
||||||
if(svn_username)
|
if(DEFINED svn_username)
|
||||||
set(svn_user_pw_args ${svn_user_pw_args} "--username=${svn_username}")
|
set(svn_user_pw_args ${svn_user_pw_args} "--username=${svn_username}")
|
||||||
endif()
|
endif()
|
||||||
if(svn_password)
|
if(DEFINED svn_password)
|
||||||
set(svn_user_pw_args ${svn_user_pw_args} "--password=${svn_password}")
|
set(svn_user_pw_args ${svn_user_pw_args} "--password=${svn_password}")
|
||||||
endif()
|
endif()
|
||||||
if(svn_trust_cert)
|
if(svn_trust_cert)
|
||||||
|
@ -1473,10 +1473,10 @@ function(_ep_add_update_command name)
|
||||||
get_property(svn_password TARGET ${name} PROPERTY _EP_SVN_PASSWORD)
|
get_property(svn_password TARGET ${name} PROPERTY _EP_SVN_PASSWORD)
|
||||||
get_property(svn_trust_cert TARGET ${name} PROPERTY _EP_SVN_TRUST_CERT)
|
get_property(svn_trust_cert TARGET ${name} PROPERTY _EP_SVN_TRUST_CERT)
|
||||||
set(svn_user_pw_args "")
|
set(svn_user_pw_args "")
|
||||||
if(svn_username)
|
if(DEFINED svn_username)
|
||||||
set(svn_user_pw_args ${svn_user_pw_args} "--username=${svn_username}")
|
set(svn_user_pw_args ${svn_user_pw_args} "--username=${svn_username}")
|
||||||
endif()
|
endif()
|
||||||
if(svn_password)
|
if(DEFINED svn_password)
|
||||||
set(svn_user_pw_args ${svn_user_pw_args} "--password=${svn_password}")
|
set(svn_user_pw_args ${svn_user_pw_args} "--password=${svn_password}")
|
||||||
endif()
|
endif()
|
||||||
if(svn_trust_cert)
|
if(svn_trust_cert)
|
||||||
|
|
Loading…
Reference in New Issue