Make the libraries and library directories private.
And group all toolkit variables together.
See #26043
https://github.com/wxWidgets/wxWidgets/pull/26061
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Thanks, but I don't think (I haven't tested yet, but I just don't see how it could) this fixes the wrong wxUSE_GUI value for console apps. Can I push commits attempting to fix this here or do you plan to add more commits yourself?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I forgot to handle the case when the library is built with wxUSE_GUI=OFF and the base libraries should get the __WXBASE__ toolkit define.
I'll push one more commit to fix this. After that you can add commits.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@MaartenBent pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@MaartenBent pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #26061.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I don't think this is the correct approach, at least not when building the libraries. I compared against the vcxproj and configure on macOS and they both have defines for the toolkit (__WXMSW__/__WXOSX_COCOA__) when building base libraries.
It is possible to use different defines for building (target_compile_definitions(... PRIVATE ...)) and when linking with it (target_compile_definitions(... INTERFACE ...)). But wx-config --cppflags base includes the toolkit as well, so I don't think we should do something different in CMake.
wx-config --cppflags base does add the -DwxUSE_GUI=0 flag. I guess this is what you suggested initially in #26043. I'll investigate that further.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()