Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

cmake: dbghelp is incorrectly detected when building static libraris with Xcode generator #982

@Kentzo

Description

@Kentzo

It's probably an issue with CMake (tested 3.27.9), but check_library_exists incorrectly detects dbghelp when generating an Xcode project that cross-compiles for tvOS and passing -DBUILD_SHARED_LIBS=OFF. The internally generated TryCompile project by CMake simply makes no attempt at actually detecting library's presence.

I reported it to CMake via a private issue #25479.

The workaround is to "bypass" the check_library_exists check by passing -DHAVE_DBGHELP=0 to cmake.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions