mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
cmake dependency download: aussie is down, use sourceforge because githup only supports https which is not supported by cmake
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39453 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9a7117af5b
commit
cdab8e94a2
@ -158,7 +158,14 @@ if(LYX_DEPENDENCIES_DOWNLOAD)
|
||||
find_file(already_downloaded ${it} "${LYX_DEPENDENCIES_DIR}/download")
|
||||
if(NOT already_downloaded)
|
||||
message(STATUS "Downloading ${it} ...")
|
||||
file(DOWNLOAD ftp://ftp.devel.lyx.org/pub/contrib/windows/${it} ${LYX_DEPENDENCIES_DIR}/download/${it} SHOW_PROGRESS)
|
||||
file(DOWNLOAD http://sourceforge.net/projects/scusi/files/${it} ${LYX_DEPENDENCIES_DIR}/download/${it}
|
||||
SHOW_PROGRESS STATUS status LOG log)
|
||||
list(GET status 0 status_code)
|
||||
list(GET status 1 status_string)
|
||||
if(NOT status_code EQUAL 0)
|
||||
file(REMOVE ${LYX_DEPENDENCIES_DIR}/${it})
|
||||
message(FATAL_ERROR "error: downloading '${it}' failed. status_code: ${status_code}, status_string: ${status_string}. \nLog: ${log} ")
|
||||
endif()
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzf ${LYX_DEPENDENCIES_DIR}/download/${it}
|
||||
WORKING_DIRECTORY ${LYX_DEPENDENCIES_DIR})
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user