Skip to content

Comments

Fix a tiny problem in winml.cmake#23173

Merged
snnn merged 1 commit intomainfrom
snnn/fix_winml_dll
Dec 20, 2024
Merged

Fix a tiny problem in winml.cmake#23173
snnn merged 1 commit intomainfrom
snnn/fix_winml_dll

Conversation

@snnn
Copy link
Contributor

@snnn snnn commented Dec 20, 2024

Description

CMake's target_link_libraries 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

@snnn snnn mentioned this pull request Dec 20, 2024
16 tasks
@snnn snnn merged commit fcc34da into main Dec 20, 2024
@snnn snnn deleted the snnn/fix_winml_dll branch December 20, 2024 19:48
tarekziade pushed a commit to tarekziade/onnxruntime that referenced this pull request Jan 10, 2025
### 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 microsoft#23158
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants