Skip to content

CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS breaks UWP arm builds #21

Open

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions