Added error message if cmake is run from IE root (#3707)

This commit is contained in:
Ilya Lavrenov 2020-12-23 18:00:36 +03:00 committed by GitHub
parent 65b2447d36
commit 5b26a7fcb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,13 @@
# Copyright (C) 2018-2020 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
project(InferenceEngine)
if(CMAKE_SOURCE_DIR STREQUAL "${InferenceEngine_SOURCE_DIR}")
message(FATAL_ERROR "Cmake source directory must point to <openvino_root>")
endif()
include(cmake/features.cmake)
# resolving dependencies for the project