Using cmake build with xcode generator makes conflict in debug/release installation (Issue #23882)

45 views
Skip to first unread message

fedormsv

unread,
Sep 19, 2023, 7:22:34 AM9/19/23
to wx-...@googlegroups.com, Subscribed

I've tried to build wxWidgets on mac using cmake and xcode generator. It works pretty good till the point I try to install debug and release builds (having cmake_install_prefix set to Install subfolder of build one). Both configurations are trying to copy include file, that is fine, but they are always bringing libraries into lib subfolder. And there finally we get only one set of libraries: bdebug or release depending on which one was the last installed.

Apart from that Install folder is nicely structured and allows to use find_package(wxWidgets CONFIG) for my project.

I tried a fix making setting lib_dbg suffix to "d" not only in case of if(WIN32_MSVC_NAMING) and it worked nice.

As problem appears to be only in multi config generator I believe the condition should be modified to check GENERATOR_IS_MULTI_CONFIG. Either replacing WIN32_MSVC_NAMING or combining with OR.

Those changes are to be done twice in functions.cmake and surprisingly also once in WebViews's CMakeLists.txt


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/issues/23882@github.com>

VZ

unread,
Sep 19, 2023, 8:06:43 AM9/19/23
to wx-...@googlegroups.com, Subscribed

FWIW I think you shouldn't be using separate debug and release versions under non-Windows systems at all. They are only needed under Windows because of the debug/release CRT dichotomy there, but under Unix you really should just use the default build with both debug and production builds of your application.


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/issues/23882/1725380262@github.com>

fedormsv

unread,
Sep 19, 2023, 3:06:38 PM9/19/23
to wx-...@googlegroups.com, Subscribed

Thank you for the note. I'll see how it works with release only. I still believe the issue stays relevant.


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/issues/23882/1726324239@github.com>

Reply all
Reply to author
Forward
0 new messages