diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt index 03f41078046..5fcce933c30 100644 --- a/inference-engine/src/inference_engine/CMakeLists.txt +++ b/inference-engine/src/inference_engine/CMakeLists.txt @@ -66,6 +66,10 @@ if(ENABLE_SSE42) ie_sse42_optimization_flags(sse4_2_flags) set_source_files_properties(${SSE_SRC} PROPERTIES COMPILE_FLAGS "${sse4_2_flags}") add_definitions(-DHAVE_SSE=1) + + if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.16") + set_source_files_properties(${SSE_SRC} PROPERTIES SKIP_PRECOMPILE_HEADERS ON) + endif() endif() addVersionDefines(ie_version.cpp CI_BUILD_NUMBER) @@ -109,7 +113,7 @@ add_library(${TARGET_NAME}_obj OBJECT ${PUBLIC_HEADERS}) ie_faster_build(${TARGET_NAME}_obj - UNITY + UNITY PCH PRIVATE "precomp.hpp" ) target_compile_definitions(${TARGET_NAME}_obj PRIVATE IMPLEMENT_INFERENCE_ENGINE_API diff --git a/inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/CMakeLists.txt b/inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/CMakeLists.txt index b1eb5bead0e..f10df452e20 100644 --- a/inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/CMakeLists.txt +++ b/inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/CMakeLists.txt @@ -25,6 +25,4 @@ addIeTargetTest( ADD_CPPLINT ) -ie_faster_build(${TARGET_NAME} - PCH PRIVATE "src/precomp.hpp" - ) +ie_faster_build(${TARGET_NAME} UNITY) diff --git a/inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/src/precomp.hpp b/inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/src/precomp.hpp deleted file mode 100644 index d6e9a611080..00000000000 --- a/inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/src/precomp.hpp +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (C) 2018-2021 Intel Corporation -// SPDX-License-Identifier: Apache-2.0 -// - -#pragma once - -#include - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include diff --git a/inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/tests/CMakeLists.txt b/inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/tests/CMakeLists.txt index 802f596e17d..bea78882172 100644 --- a/inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/tests/CMakeLists.txt +++ b/inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/tests/CMakeLists.txt @@ -24,6 +24,4 @@ addIeTargetTest( ADD_CPPLINT ) -ie_faster_build(${TARGET_NAME} - PCH PRIVATE "${OpenVINO_MAIN_SOURCE_DIR}/inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/src/precomp.hpp" - ) +ie_faster_build(${TARGET_NAME} UNITY) diff --git a/inference-engine/tests/functional/plugin/conformance/test_runner/CMakeLists.txt b/inference-engine/tests/functional/plugin/conformance/test_runner/CMakeLists.txt index de7e630c85f..b12307aed42 100644 --- a/inference-engine/tests/functional/plugin/conformance/test_runner/CMakeLists.txt +++ b/inference-engine/tests/functional/plugin/conformance/test_runner/CMakeLists.txt @@ -27,6 +27,4 @@ addIeTargetTest( CONFORMANCE ) -ie_faster_build(${TARGET_NAME} - PCH PRIVATE "src/precomp.hpp" - ) +ie_faster_build(${TARGET_NAME} UNITY) diff --git a/inference-engine/tests/functional/plugin/conformance/test_runner/src/precomp.hpp b/inference-engine/tests/functional/plugin/conformance/test_runner/src/precomp.hpp deleted file mode 100644 index 23ba10110cf..00000000000 --- a/inference-engine/tests/functional/plugin/conformance/test_runner/src/precomp.hpp +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (C) 2018-2021 Intel Corporation -// SPDX-License-Identifier: Apache-2.0 -// - -#pragma once - -#include - -#include -#include -#include "ngraph_functions/builders.hpp" -#include "ngraph_functions/subgraph_builders.hpp" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include diff --git a/ngraph/test/runtime/CMakeLists.txt b/ngraph/test/runtime/CMakeLists.txt index 1cdc0842928..be84499ee0e 100644 --- a/ngraph/test/runtime/CMakeLists.txt +++ b/ngraph/test/runtime/CMakeLists.txt @@ -38,8 +38,6 @@ set (SRC pass/shape_relevance.hpp ) -disable_deprecated_warnings() - add_library(ngraph_backend SHARED ${SRC}) if(COMMAND ie_faster_build)