Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS breaks UWP arm builds #21

Open
stammen opened this issue Jan 31, 2017 · 1 comment
Open

CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS breaks UWP arm builds #21

stammen opened this issue Jan 31, 2017 · 1 comment

Comments

@stammen
Copy link
Member

stammen commented Jan 31, 2017

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) will break UWP arm builds. The export tool used by cmake only seems to support x86 and x64 obj files and cannot parse arm obj files.

For example, the vcpkg project uses CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS to generate the export symbols for freetype. All builds work except for UWP arm builds. cmake.exe is not able to parse the arm object files.

https://github.com/Microsoft/vcpkg/blob/master/ports/freetype/0001-Support-Windows-DLLs-via-CMAKE_WINDOWS_EXPORT_ALL_SY.patch

Here is a description of the CMAKE_WINDOWS_EXPORT_ALL_SY feature:

https://blog.kitware.com/create-dlls-on-windows-without-declspec-using-new-cmake-export-all-feature/

https://cmake.org/cmake/help/git-master/prop_tgt/WINDOWS_EXPORT_ALL_SYMBOLS.html

@Mixaill
Copy link

Mixaill commented Mar 21, 2017

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

No branches or pull requests

2 participants