1 # Copyright (C) 2018-2019 Intel Corporation
2 # SPDX-License-Identifier: Apache-2.0
5 # environment variables used
6 # name of environment variable stored path to temp directory"
7 set(DL_SDK_TEMP "DL_SDK_TEMP")
9 # prepare temporary folder
10 function(set_temp_directory temp_variable source_tree_dir)
11 if (DEFINED ENV{${DL_SDK_TEMP}} AND NOT $ENV{${DL_SDK_TEMP}} STREQUAL "")
13 string(REPLACE "\\" "\\\\" temp $ENV{${DL_SDK_TEMP}})
15 set(temp $ENV{${DL_SDK_TEMP}})
18 if (ENABLE_ALTERNATIVE_TEMP)
19 set(ALTERNATIVE_PATH ${source_tree_dir}/temp)
22 message(STATUS "DL_SDK_TEMP envionment not set")
23 set(temp ${source_tree_dir}/temp)
26 set("${temp_variable}" "${temp}" PARENT_SCOPE)
28 set(ALTERNATIVE_PATH "${ALTERNATIVE_PATH}" PARENT_SCOPE)
36 if(ENABLE_PROFILING_ITT)
37 find_package(ITT REQUIRED)
40 include(plugins/plugins)