Skip to content

Conversation

@umireon
Copy link
Collaborator

@umireon umireon commented Nov 5, 2025

Improve Mac build

Don't care about Windows and Ubuntu now.

Added find_package for onnxruntime in CMakeLists.txt to require ONNX Runtime during build. Updated DownloadOnnxRuntime.cmake to use versioned archive names and rename extracted directories for consistency across platforms.
Prepends ONNX Runtime to CMAKE_PREFIX_PATH and links onnxruntime::onnxruntime target. Ensures the ONNX Runtime include path is set correctly by modifying onnxruntimeTargets.cmake after download. Removes FetchOnnxruntime.cmake inclusion for non-system builds.
Moved ONNX Runtime find and path setup inside conditional to support USE_SYSTEM_ONNXRUNTIME. Added macOS-specific handling for ONNX Runtime dynamic library. Removed unused BUILD_TESTING variable from CMakePresets.json.
@umireon umireon requested a review from royshil November 5, 2025 17:55
@umireon
Copy link
Collaborator Author

umireon commented Nov 5, 2025

@royshil Windows and Ubuntu are failing but they will be fixed later.

Copy link
Owner

@royshil royshil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you're OK with windows and ubuntu failig - GO!

@umireon umireon merged commit de72cf1 into main Nov 5, 2025
6 of 8 checks passed
@umireon umireon deleted the umireon/download-onnxruntime-script branch November 7, 2025 15:41
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.

3 participants