From 2be055e1b512db03e184645165cd2ae487ff886d Mon Sep 17 00:00:00 2001 From: Mateusz Januszkiewicz Date: Tue, 20 Dec 2022 20:43:30 +0100 Subject: [PATCH] add public pdb #4 --- cmake/developer_package/plugins/plugins.cmake | 2 +- src/bindings/c/src/CMakeLists.txt | 2 +- src/cmake/openvino.cmake | 2 +- src/frontends/ir/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/developer_package/plugins/plugins.cmake b/cmake/developer_package/plugins/plugins.cmake index 21e5544983eb67..4846c3c7d9fb4e 100644 --- a/cmake/developer_package/plugins/plugins.cmake +++ b/cmake/developer_package/plugins/plugins.cmake @@ -84,7 +84,7 @@ function(ie_add_plugin) if(WIN32) set_target_properties(${IE_PLUGIN_NAME} PROPERTIES COMPILE_PDB_NAME ${IE_PLUGIN_NAME}) - set_property(TARGET ${IE_PLUGIN_NAME} APPEND_STRING PROPERTY LINK_FLAGS /PDBSTRIPPED:${IE_PLUGIN_NAME}_STRIPPED.pdb) + set_target_properties(${IE_PLUGIN_NAME} PROPERTIES LINK_FLAGS_RELWITHDEBINFO /PDBSTRIPPED:${IE_PLUGIN_NAME}_STRIPPED.pdb) target_link_options(${IE_PLUGIN_NAME} PRIVATE /PDBALTPATH:$) endif() diff --git a/src/bindings/c/src/CMakeLists.txt b/src/bindings/c/src/CMakeLists.txt index 452b22c6ab2793..36d57256a96afc 100644 --- a/src/bindings/c/src/CMakeLists.txt +++ b/src/bindings/c/src/CMakeLists.txt @@ -14,7 +14,7 @@ add_library(openvino::runtime::c ALIAS ${TARGET_NAME}) if(WIN32) set_target_properties(${TARGET_NAME} PROPERTIES OUTPUT_NAME ${TARGET_NAME}_preproc) - set_property(TARGET ${TARGET_NAME} APPEND_STRING PROPERTY LINK_FLAGS /PDBSTRIPPED:${TARGET_NAME}_STRIPPED.pdb) + set_target_properties(${TARGET_NAME} PROPERTIES LINK_FLAGS_RELWITHDEBINFO /PDBSTRIPPED:${TARGET_NAME}_STRIPPED.PDB) target_link_options(${TARGET_NAME} PRIVATE /PDBALTPATH:$) endif() diff --git a/src/cmake/openvino.cmake b/src/cmake/openvino.cmake index 039c80ae454c1e..707d293cfa95b4 100644 --- a/src/cmake/openvino.cmake +++ b/src/cmake/openvino.cmake @@ -44,7 +44,7 @@ endif() if(WIN32) set_target_properties(${TARGET_NAME} PROPERTIES COMPILE_PDB_NAME ${TARGET_NAME}) - set_property(TARGET ${TARGET_NAME} APPEND_STRING PROPERTY LINK_FLAGS /PDBSTRIPPED:${TARGET_NAME}_STRIPPED.pdb) + set_target_properties(${TARGET_NAME} PROPERTIES LINK_FLAGS_RELWITHDEBINFO /PDBSTRIPPED:${TARGET_NAME}_STRIPPED.pdb) target_link_options(${TARGET_NAME} PRIVATE /PDBALTPATH:$) endif() diff --git a/src/frontends/ir/CMakeLists.txt b/src/frontends/ir/CMakeLists.txt index 4b76db5cbd425c..c13408ea003573 100644 --- a/src/frontends/ir/CMakeLists.txt +++ b/src/frontends/ir/CMakeLists.txt @@ -9,6 +9,6 @@ ov_add_frontend(NAME ir openvino::runtime::dev) if(WIN32) - set_property(TARGET openvino_ir_frontend APPEND_STRING PROPERTY LINK_FLAGS "/PDBSTRIPPED:openvino_ir_frontend_STRIPPED.pdb") + set_target_properties(openvino_ir_frontend PROPERTIES LINK_FLAGS_RELWITHDEBINFO "/PDBSTRIPPED:openvino_ir_frontend_STRIPPED.pdb") target_link_options(openvino_ir_frontend PRIVATE /PDBALTPATH:$) endif()