Commit 5d8e662e authored by jcfr's avatar jcfr
Browse files

COMP: Remove code used to download ExternalProject cmake module from CTK repository

git-svn-id: http://svn.slicer.org/Slicer4/trunk@15163 3bd1e089-480b-0410-8dfb-8563597acbee
parent acdaad6d
......@@ -67,19 +67,6 @@ set(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
)
#-----------------------------------------------------------------------------
# Convenient macro allowing to download a file
#------------------------------------------------------------------------------
FUNCTION(downloadFile url dest)
FILE(DOWNLOAD ${url} ${dest} STATUS status)
LIST(GET status 0 error_code)
LIST(GET status 1 error_msg)
IF(error_code OR NOT EXISTS ${dest})
MESSAGE(FATAL_ERROR "error: Failed to download ${url}")
ENDIF()
ENDFUNCTION()
#-----------------------------------------------------------------------------
# Prerequisites
#------------------------------------------------------------------------------
......@@ -91,10 +78,6 @@ if(NOT Slicer_USE_GIT_PROTOCOL)
set(git_protocol "http")
endif()
set(git_repo http://github.com/commontk/CTK/raw/master/)
set(file CMake/ExternalProject.cmake)
downloadFile(${git_repo}/${file} ${CMAKE_BINARY_DIR}/${file})
#-----------------------------------------------------------------------------
# Include External project module
#------------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment