Skip to content

Wrong bit-width check in CMake tooling. #19

@burnpanck

Description

@burnpanck

We would like to use function_ref in an ARM embedded (32bit) use-case. We use a CMake superbuild approach to prepare dependencies, where CMAKE_TOOLCHAIN_FILE is properly passed to the sub-build, so the library should be built in 32bit mode. However, when trying to include the dependent library, CMake refuses to select the just-build library, claiming that it is 64bit and thus does not match our architecture. a) The library should really be built for a 32bit environment, somehow it thinks it is being built for a 64bit environment. b) As the library is header-only, the build environment should not matter, and therefore there should not be any bit-width check in the installed tl-function-ref-config-version.cmake.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions