Skip to content

fix: correct CMakeLists.txt variable name typo for Windows DLL bundling#2

Open
imLeGEnDco55 wants to merge 1 commit into
ldwformat:mainfrom
imLeGEnDco55:fix/windows-cmake-typo
Open

fix: correct CMakeLists.txt variable name typo for Windows DLL bundling#2
imLeGEnDco55 wants to merge 1 commit into
ldwformat:mainfrom
imLeGEnDco55:fix/windows-cmake-typo

Conversation

@imLeGEnDco55
Copy link
Copy Markdown

Summary

Fixes a typo in windows/CMakeLists.txt that prevents the native DLL from being bundled on Windows builds.

Problem

The variable name flutter_embedding_bundled_libraries does not match the expected convention ${plugin_name}_bundled_libraries. Since the plugin name is flutter_embedder, Flutter's build system looks for flutter_embedder_bundled_libraries and finds nothing — resulting in missing DLLs at runtime.

Change

-set(flutter_embedding_bundled_libraries
+set(flutter_embedder_bundled_libraries

Impact

Without this fix, Windows builds crash because the ONNX Runtime DLL is not included in the output directory.

Fixes #1

The variable `flutter_embedding_bundled_libraries` should be
`flutter_embedder_bundled_libraries` to match the plugin name.

Flutter's build system expects `${plugin_name}_bundled_libraries`,
so the typo prevented the native DLL from being bundled into
Windows builds.

Fixes ldwformat#1
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.

Bug: Windows DLL not bundled due to typo in CMakeLists.txt

1 participant