Commit e824331
authored
Consistent with the configuration in the packaged cmake (#26104)
Shared library path and include path are not same in release file
`onnxruntime-linux-x64-gpu-1.22.0.tgz` .
1. The library file named libonnxruntime.so.1.22.0 in
`onnxruntimeTargets-release.cmake` is at
`lib64/libonnxruntime.so.1.22.0`, but file in `lib` path.
2. The include path in `onnxruntimeTargets.cmake` is in
`${_IMPORT_PREFIX}/include/onnxruntime`, but path in `include` path.
### Description
<!-- Describe your changes. -->
1.
<img width="799" height="87" alt="image"
src="https://github.com/user-attachments/assets/d870d4d2-c91c-4ba4-99cc-1eaefd9ca541"
/>
` IMPORTED_LOCATION_RELEASE
"${_IMPORT_PREFIX}/lib64/libonnxruntime.so.1.22.0"`
2.
<img width="1093" height="559" alt="image"
src="https://github.com/user-attachments/assets/195b9362-ebc5-46e5-9a3f-278efc2bf5b2"
/>
` INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/onnxruntime"`
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
#24003 (comment)1 parent fe37372 commit e824331
1 file changed
+0
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
| |||
0 commit comments