mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Fix a tiny problem in winml.cmake (#23173)
### Description CMake's [target_link_libraries](https://cmake.org/cmake/help/latest/command/target_link_libraries.html#id2) function accepts plain library name(like `re2`) or target name(like `re2::re2`) or some other kinds of names. "plain library names" are old-fashioned, for compatibility only. We should use target names. ### Motivation and Context To make vcpkg work with winml build. See #23158
This commit is contained in:
parent
00b262dbb4
commit
fcc34da5e9
1 changed files with 1 additions and 1 deletions
|
|
@ -782,7 +782,7 @@ add_dependencies(winml_dll winml_api_native)
|
|||
add_dependencies(winml_dll winml_api_native_internal)
|
||||
|
||||
# Link libraries
|
||||
target_link_libraries(winml_dll PRIVATE re2)
|
||||
target_link_libraries(winml_dll PRIVATE re2::re2)
|
||||
target_link_libraries(winml_dll PRIVATE ${WIL_TARGET})
|
||||
target_link_libraries(winml_dll PRIVATE winml_lib_api)
|
||||
if (NOT winml_is_inbox)
|
||||
|
|
|
|||
Loading…
Reference in a new issue