diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index b2d4b621326..7b88b54bde9 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -3,7 +3,7 @@ # if(ENABLE_LTO) - set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON) + set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE OFF) endif() add_definitions(-DIN_OV_CORE_LIBRARY) diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index 8737df02196..6eea7665d20 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -7,7 +7,7 @@ if(SUGGEST_OVERRIDE_SUPPORTED) endif() if(ENABLE_LTO) - set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON) + set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE OFF) endif() add_subdirectory(ittapi)