Skip to content

Commit

Permalink
add public pdb openvinotoolkit#4
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszJanuszkiewicz committed Dec 20, 2022
1 parent 6cd74e0 commit 2be055e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/developer_package/plugins/plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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:$<TARGET_PDB_FILE_NAME:${IE_PLUGIN_NAME}>)
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/bindings/c/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:$<TARGET_PDB_FILE_NAME:${TARGET_NAME}>)
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/cmake/openvino.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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:$<TARGET_PDB_FILE_NAME:${TARGET_NAME}>)
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/frontends/ir/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:$<TARGET_PDB_FILE_NAME:openvino_ir_frontend>)
endif()

0 comments on commit 2be055e

Please sign in to comment.