BUG: cmd_set logic was missing from update and patch steps. Fix it so that UPDATE_COMMAND "" means "no update step even though this is a CVS/SVN repository..."
This commit is contained in:
parent
767b82a6c8
commit
04fb177de1
|
@ -527,6 +527,7 @@ endfunction(_ep_add_download_command)
|
||||||
function(_ep_add_update_command name)
|
function(_ep_add_update_command name)
|
||||||
ep_get(${name} source_dir)
|
ep_get(${name} source_dir)
|
||||||
|
|
||||||
|
get_property(cmd_set TARGET ${name} PROPERTY _EP_UPDATE_COMMAND SET)
|
||||||
get_property(cmd TARGET ${name} PROPERTY _EP_UPDATE_COMMAND)
|
get_property(cmd TARGET ${name} PROPERTY _EP_UPDATE_COMMAND)
|
||||||
get_property(cvs_repository TARGET ${name} PROPERTY _EP_CVS_REPOSITORY)
|
get_property(cvs_repository TARGET ${name} PROPERTY _EP_CVS_REPOSITORY)
|
||||||
get_property(svn_repository TARGET ${name} PROPERTY _EP_SVN_REPOSITORY)
|
get_property(svn_repository TARGET ${name} PROPERTY _EP_SVN_REPOSITORY)
|
||||||
|
@ -534,7 +535,8 @@ function(_ep_add_update_command name)
|
||||||
set(work_dir)
|
set(work_dir)
|
||||||
set(comment)
|
set(comment)
|
||||||
set(always)
|
set(always)
|
||||||
if(cmd)
|
|
||||||
|
if(cmd_set)
|
||||||
set(work_dir ${source_dir})
|
set(work_dir ${source_dir})
|
||||||
elseif(cvs_repository)
|
elseif(cvs_repository)
|
||||||
if(NOT CVS_EXECUTABLE)
|
if(NOT CVS_EXECUTABLE)
|
||||||
|
@ -569,9 +571,12 @@ endfunction(_ep_add_update_command)
|
||||||
function(_ep_add_patch_command name)
|
function(_ep_add_patch_command name)
|
||||||
ep_get(${name} source_dir)
|
ep_get(${name} source_dir)
|
||||||
|
|
||||||
set(work_dir)
|
get_property(cmd_set TARGET ${name} PROPERTY _EP_PATCH_COMMAND SET)
|
||||||
get_property(cmd TARGET ${name} PROPERTY _EP_PATCH_COMMAND)
|
get_property(cmd TARGET ${name} PROPERTY _EP_PATCH_COMMAND)
|
||||||
if(cmd)
|
|
||||||
|
set(work_dir)
|
||||||
|
|
||||||
|
if(cmd_set)
|
||||||
set(work_dir ${source_dir})
|
set(work_dir ${source_dir})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue