diff options
author | Matt McCormick <matt.mccormick@kitware.com> | 2013-05-06 12:30:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-05-06 17:16:18 (GMT) |
commit | ecd11a25cc83eeae369011b1ca9e4a8498f10437 (patch) | |
tree | a6762bb688bd59082f77eb3ee928dc97929574af /Modules/ExternalProject.cmake | |
parent | 6c6bfe1509e8593539d551787029fcb360127d1b (diff) | |
download | CMake-ecd11a25cc83eeae369011b1ca9e4a8498f10437.zip CMake-ecd11a25cc83eeae369011b1ca9e4a8498f10437.tar.gz CMake-ecd11a25cc83eeae369011b1ca9e4a8498f10437.tar.bz2 |
ExternalProject: Allow blank SVN_USERNAME/SVN_PASSWORD (#14128)
With
SVN_USERNAME ""
SVN_PASSWORD ""
in an ExternalProject_Add() call, the blank username and password
will be passed to the svn checkout/update step commands.
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r-- | Modules/ExternalProject.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 40e14d5..6afdb97 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -1251,10 +1251,10 @@ function(_ep_add_download_command name) get_filename_component(work_dir "${source_dir}" PATH) set(comment "Performing download step (SVN checkout) for '${name}'") set(svn_user_pw_args "") - if(svn_username) + if(DEFINED svn_username) set(svn_user_pw_args ${svn_user_pw_args} "--username=${svn_username}") endif() - if(svn_password) + if(DEFINED svn_password) set(svn_user_pw_args ${svn_user_pw_args} "--password=${svn_password}") endif() 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_trust_cert TARGET ${name} PROPERTY _EP_SVN_TRUST_CERT) set(svn_user_pw_args "") - if(svn_username) + if(DEFINED svn_username) set(svn_user_pw_args ${svn_user_pw_args} "--username=${svn_username}") endif() - if(svn_password) + if(DEFINED svn_password) set(svn_user_pw_args ${svn_user_pw_args} "--password=${svn_password}") endif() if(svn_trust_cert) |