diff --git a/cmake/developer_package/compile_flags/sdl.cmake b/cmake/developer_package/compile_flags/sdl.cmake index d96fdb34f9d338..44a8be8fc5c9ec 100644 --- a/cmake/developer_package/compile_flags/sdl.cmake +++ b/cmake/developer_package/compile_flags/sdl.cmake @@ -41,7 +41,7 @@ else() set(IE_C_CXX_FLAGS "${IE_C_CXX_FLAGS} /sdl") endif() set(IE_C_CXX_FLAGS "${IE_C_CXX_FLAGS} /guard:cf") - set(IE_LINKER_FLAGS "${IE_LINKER_FLAGS} /guard:cf /PDBALTPATH:$") + set(IE_LINKER_FLAGS "${IE_LINKER_FLAGS} /guard:cf") if(ENABLE_INTEGRITYCHECK) set(IE_LINKER_FLAGS "${IE_LINKER_FLAGS} /INTEGRITYCHECK") endif() diff --git a/cmake/developer_package/plugins/plugins.cmake b/cmake/developer_package/plugins/plugins.cmake index 553b97fb5b0cd8..c80bb8a7469bd7 100644 --- a/cmake/developer_package/plugins/plugins.cmake +++ b/cmake/developer_package/plugins/plugins.cmake @@ -86,6 +86,7 @@ function(ie_add_plugin) if(WIN32) set_target_properties(${IE_PLUGIN_NAME} PROPERTIES COMPILE_PDB_NAME ${IE_PLUGIN_NAME}) + target_link_options(${IE_PLUGIN_NAME} PRIVATE /PDBALTPATH:$) endif() if(CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_CROSSCOMPILING) diff --git a/src/bindings/c/src/CMakeLists.txt b/src/bindings/c/src/CMakeLists.txt index 47c4b0a2505f17..b63358cb1ad29a 100644 --- a/src/bindings/c/src/CMakeLists.txt +++ b/src/bindings/c/src/CMakeLists.txt @@ -13,6 +13,7 @@ add_library(openvino::runtime::c ALIAS ${TARGET_NAME}) if(WIN32) set_target_properties(${TARGET_NAME} PROPERTIES OUTPUT_NAME ${TARGET_NAME}_preproc) + target_link_options(${TARGET_NAME} PRIVATE /PDBALTPATH:$) endif() target_link_libraries(${TARGET_NAME} PRIVATE openvino) diff --git a/src/cmake/openvino.cmake b/src/cmake/openvino.cmake index a3c54f20944903..9f34080feaaa65 100644 --- a/src/cmake/openvino.cmake +++ b/src/cmake/openvino.cmake @@ -49,6 +49,7 @@ endif() if(WIN32) set_target_properties(${TARGET_NAME} PROPERTIES COMPILE_PDB_NAME ${TARGET_NAME}) + target_link_options(${TARGET_NAME} PRIVATE /PDBALTPATH:$) endif() set_ie_threading_interface_for(${TARGET_NAME}) diff --git a/src/frontends/ir/CMakeLists.txt b/src/frontends/ir/CMakeLists.txt index 37ba795bf7db1a..c297084c46c2aa 100644 --- a/src/frontends/ir/CMakeLists.txt +++ b/src/frontends/ir/CMakeLists.txt @@ -7,3 +7,7 @@ ov_add_frontend(NAME ir LINK_LIBRARIES openvino::pugixml # TODO: remove dependency below in CVS-69781 openvino::runtime::dev) + +if(WIN32) + target_link_options(openvino_ir_frontend PRIVATE /PDBALTPATH:$) +endif() \ No newline at end of file