1 # Copyright (C) 2018-2019 Intel Corporation
3 # SPDX-License-Identifier: Apache-2.0
11 if ("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
12 message(STATUS "Detected 64 bit architecture")
16 message(STATUS "Detected 32 bit architecture")
26 SET(ENABLE_MKL_DNN OFF)
36 #minGW specific - under wine no support for downloading file and applying them using git
39 SET(ENABLE_CLDNN OFF) # dont have mingw dll for linking
40 set(ENABLE_SAMPLES OFF)
44 # Linux specific - not all OS'es are supported
47 get_linux_name(LINUX_OS_NAME)
50 ${LINUX_OS_NAME} STREQUAL "Ubuntu 14.04" OR
51 ${LINUX_OS_NAME} STREQUAL "Ubuntu 16.04" OR
52 ${LINUX_OS_NAME} STREQUAL "CentOS 7"))
55 message(WARNING "Cannot detect Linux OS via reading /etc/*-release:\n ${release_data}")
59 if (NOT ENABLE_MKL_DNN)
63 #next section set defines to be accesible in c++/c code for certain feature
64 if (ENABLE_PROFILING_RAW)
65 add_definitions(-DENABLE_PROFILING_RAW=1)
69 add_definitions(-DENABLE_CLDNN=1)
73 add_definitions(-DENABLE_MKL_DNN=1)
77 add_definitions(-DENABLE_GNA)
81 set (ENABLE_SAMPLES_CORE ON)
84 if (DEVELOPMENT_PLUGIN_MODE)
85 message (STATUS "Enabled development plugin mode")
87 set (ENABLE_MKL_DNN OFF)
88 set (ENABLE_TESTS OFF)
90 message (STATUS "Initialising submodules")
91 execute_process (COMMAND git submodule update --init ${IE_MAIN_SOURCE_DIR}/thirdparty/pugixml
92 RESULT_VARIABLE git_res)
95 message (STATUS "Initialising submodules - done")
100 set(CMAKE_VERBOSE_MAKEFILE ON)
103 print_enabled_features()