Skip to content

[QNN EP] Fix the build error when the specified QNN library is missing#26872

Merged
edgchen1 merged 1 commit intomicrosoft:mainfrom
CodeLinaro:dev/kuanyul-qti/fix_qnn_libs_build_error
Jan 7, 2026
Merged

[QNN EP] Fix the build error when the specified QNN library is missing#26872
edgchen1 merged 1 commit intomicrosoft:mainfrom
CodeLinaro:dev/kuanyul-qti/fix_qnn_libs_build_error

Conversation

@kuanyul-qti
Copy link
Contributor

Description

Use file(GLOB ...) to allow for the specified file to not exist.

Motivation and Context

If the QNN library is missing, using list(APPEND ...) will cause errors during the build process.

- Use file(GLOB ...) to allow for the specified file to not exist.
@kuanyul-qti kuanyul-qti changed the title Fix the build error when the specified QNN library is missing [QNN EP] Fix the build error when the specified QNN library is missing Dec 29, 2025
@edgchen1
Copy link
Contributor

edgchen1 commented Jan 5, 2026

/azp run Linux QNN CI Pipeline,Win_TRT_Minimal_CUDA_Test_CI,Windows ARM64 QNN CI Pipeline,Windows GPU Doc Gen CI Pipeline

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@edgchen1 edgchen1 enabled auto-merge (squash) January 7, 2026 00:45
@edgchen1 edgchen1 merged commit 517e06c into microsoft:main Jan 7, 2026
100 of 101 checks passed
alex-spacemit pushed a commit to spacemit-com/onnxruntime that referenced this pull request Jan 20, 2026
microsoft#26872)

### Description
Use `file(GLOB ...)` to allow for the specified file to not exist.



### Motivation and Context
If the QNN library is missing, using `list(APPEND ...)` will cause
errors during the build process.
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