Use 'find_dependency()' in CMake Config file (PR #25850)

28 views
Skip to first unread message

Dmitry Vilkov

unread,
Oct 1, 2025, 6:33:59 PM (4 days ago) Oct 1
to wx-...@googlegroups.com, Subscribed

It is designed to be used in a Package Configuration File (Config.cmake). find_dependency() forwards the correct parameters for QUIET and REQUIRED which were passed to the original find_package() call.

See
https://cmake.org/cmake/help/latest/module/CMakeFindDependencyMacro.html


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/25850

Commit Summary

  • 90c2f74 Use 'find_dependency()' in CMake Config file

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25850@github.com>

VZ

unread,
Oct 2, 2025, 6:13:39 AM (4 days ago) Oct 2
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25850)

Something probably needs to be included to make this usable.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25850/c3360313623@github.com>

PB

unread,
Oct 2, 2025, 6:25:52 AM (4 days ago) Oct 2
to wx-...@googlegroups.com, Subscribed
PBfordev left a comment (wxWidgets/wxWidgets#25850)

Something probably needs to be included to make this usable.

Probably
include(CMakeFindDependencyMacro)


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25850/c3360366881@github.com>

Dmitry Vilkov

unread,
Oct 2, 2025, 1:59:09 PM (4 days ago) Oct 2
to wx-...@googlegroups.com, Push

@vilkov pushed 1 commit.

  • 549b950 Use 'find_dependency()' in CMake Config file


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25850/before/90c2f74a503bcd6bda7a474384a9130b1da54bbd/after/549b950dea1c7b9e401ddd3b176c0ec850f9c88e@github.com>

Dmitry Vilkov

unread,
Oct 2, 2025, 2:03:42 PM (4 days ago) Oct 2
to wx-...@googlegroups.com, Subscribed
vilkov left a comment (wxWidgets/wxWidgets#25850)

Thanks @vadz @PBfordev, missed that one


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25850/c3362389004@github.com>

Maarten

unread,
Oct 2, 2025, 2:40:00 PM (4 days ago) Oct 2
to wx-...@googlegroups.com, Subscribed
MaartenBent left a comment (wxWidgets/wxWidgets#25850)

Finding OpenGL doesn't work on iOS, see also our workaround here: https://github.com/wxWidgets/wxWidgets/blob/16af160f7f04442d1a7d9364e24c4b6b8e05bea0/build/cmake/init.cmake#L506-L511

But because we don't use find_package(OpenGL) for iOS, there wil also be no OpenGL::<target> in the config files, and we don't need to search for them to fix any unknown target errors.

So I think you can simply skip it, something like this will probably work:

if (NOT (APPLE AND IOS))
    find_dependency(OpenGL)
endif()


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25850/c3362500342@github.com>

VZ

unread,
Oct 5, 2025, 1:19:30 PM (16 hours ago) Oct 5
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25850)

This can't be applied before the CI error is fixed, please check if Maarten's suggestion above works.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25850/c3369197071@github.com>

Reply all
Reply to author
Forward
0 new messages