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
https://github.com/wxWidgets/wxWidgets/pull/25850
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
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.
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.
@vilkov pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
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.
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.
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.