153264f9eSMark Nunberg# DownloadLcbDeb(url location)
253264f9eSMark NunbergMACRO(DOWNLOAD_LCB_DEP url dest)
353264f9eSMark Nunberg    IF(UNIX)
453264f9eSMark Nunberg        EXECUTE_PROCESS(COMMAND wget -O "${dest}" "${url}")
553264f9eSMark Nunberg    ELSEIF(WIN32)
653264f9eSMark Nunberg        EXECUTE_PROCESS(COMMAND powershell -Command
753264f9eSMark Nunberg            "(New-Object Net.WebClient).DownloadFile('${url}', '${dest}')")
853264f9eSMark Nunberg    ELSE()
953264f9eSMark Nunberg        MESSAGE(WARNING "Using buggy built-in CMake downloader")
1053264f9eSMark Nunberg        FILE(DOWNLOAD ${url} ${dest} INACTIVITY_TIMEOUT 30 SHOW_PROGRESS)
1153264f9eSMark Nunberg    ENDIF()
1253264f9eSMark NunbergENDMACRO()
13