CMake config files issue? #22981
Replies: 3 comments
-
Thank you for reporting. could you please help to create a PR for a fix? |
Beta Was this translation helpful? Give feedback.
-
Is there a fix for this issue already? It seems that the path for the includes is also wrong. In onnxruntimeTargets.cmake, the path for the includes is defined as:
Which give me this error:
Deleting the tailing |
Beta Was this translation helpful? Give feedback.
-
It is because originally when we published this thing the first time, Ubuntu didn't use "/lib64" as the lib folder for 64-bit systems. They used "/lib". Now if we change it, a lot of projects' build scripts will break, including https://github.com/microsoft/onnxruntime-extensions, https://github.com/microsoft/onnxruntime-genai and many our customers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to depend on onnxruntime from my C++ project and to do that, I've downloaded the latest release:
onnxruntime-linux-x64-gpu-1.20.1.tgz
Then from my cmake:
First issue:
libonnxruntime.so.1.20.1
is searched inside lib64 instead of lib (the former doesn't exist)INTERFACE_INCLUDE_DIRECTORIES
is set toinclude/onnxruntime
while it should beinclude
Beta Was this translation helpful? Give feedback.
All reactions