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.![]()
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.![]()
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.![]()