Skip to content

Commit

Permalink
Extend mt.runtime.win32.toolchain to enable hybrid crt (openvinotoolk…
Browse files Browse the repository at this point in the history
…it#28440)

### Details:
 - Extend mt.runtime.win32.toolchain to enable hybrid crt

### Tickets:
 - CVS-160354
  • Loading branch information
olpipi authored Jan 27, 2025
1 parent 18a0c24 commit 3e1507d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmake/toolchains/mt.runtime.win32.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ if(use_static_runtime)
endif()
endforeach()
endforeach()
foreach(type EXE SHARED MODULE)
foreach(build_type "_DEBUG" "_MINSIZEREL" "_RELEASE" "_RELWITHDEBINFO")
set(flag_var "CMAKE_${type}_LINKER_FLAGS${build_type}_INIT")
if (build_type STREQUAL "_DEBUG")
string(APPEND ${flag_var} " /NODEFAULTLIB:libucrtd.lib /DEFAULTLIB:ucrtd.lib")
else()
string(APPEND ${flag_var} " /NODEFAULTLIB:libucrt.lib /DEFAULTLIB:ucrt.lib")
endif()
endforeach()
endforeach()
endif()

macro(ov_set_msvc_runtime var value)
Expand Down

0 comments on commit 3e1507d

Please sign in to comment.