CMAKE: moved GNA var setting to proper place; removed find_package when build python...
[platform/upstream/dldt.git] / inference-engine / cmake / download.cmake
1 # Copyright (C) 2018-2019 Intel Corporation
2 # SPDX-License-Identifier: Apache-2.0
3 #
4
5 function (Download from to fatal result output)
6
7   if((NOT EXISTS "${to}"))
8     message(STATUS "Downloading from ${from} to ${to} ...")
9     file(DOWNLOAD ${from} ${to}
10       TIMEOUT 3600
11       LOG log
12       STATUS status
13       SHOW_PROGRESS)
14
15     set (${output} ${status} PARENT_SCOPE)
16   else()
17     set (${output} 0 PARENT_SCOPE)
18   endif()
19   set(${result} "ON" PARENT_SCOPE)
20
21 endfunction(Download)
22
23 include ("download_and_apply")
24 include ("download_and_extract")