Skip to content

Commit

Permalink
fixed pdb file match in symchk openvinotoolkit#4
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszJanuszkiewicz committed Nov 18, 2022
1 parent f96d925 commit 792ee89
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/developer_package/compile_flags/sdl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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:$<TARGET_PDB_FILE_NAME:${TARGET_NAME}>")
set(IE_LINKER_FLAGS "${IE_LINKER_FLAGS} /guard:cf")
if(ENABLE_INTEGRITYCHECK)
set(IE_LINKER_FLAGS "${IE_LINKER_FLAGS} /INTEGRITYCHECK")
endif()
Expand Down
1 change: 1 addition & 0 deletions cmake/developer_package/plugins/plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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:$<TARGET_PDB_FILE_NAME:${IE_PLUGIN_NAME}>)
endif()

if(CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_CROSSCOMPILING)
Expand Down
1 change: 1 addition & 0 deletions src/bindings/c/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:$<TARGET_PDB_FILE_NAME:${TARGET_NAME}>)
endif()

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

set_ie_threading_interface_for(${TARGET_NAME})
Expand Down
4 changes: 4 additions & 0 deletions src/frontends/ir/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:$<TARGET_PDB_FILE_NAME:openvino_ir_frontend>)
endif()

0 comments on commit 792ee89

Please sign in to comment.