How to use "wxwidgets.props" to select static libraries

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
fishnet37222
Experienced Solver
Experienced Solver
Posts: 74
Joined: Sat May 06, 2017 1:40 pm

How to use "wxwidgets.props" to select static libraries

Post by fishnet37222 »

I'm using Visual Studio 2022 and wxWidgets 3.2.0. I'm playing around with using the provided "wxwidgets.props" file. My project builds without any issues, but it selects the DLL version of the libraries by default, which means that I have to somehow copy the DLLs to the output folder. I know I can put an "xcopy" command in the post-build step, but that would copy every DLL, whether or not it's actually needed.

Is it possible to configure the "wxwidgets.props" file to select the static build of the libraries?
Dave F.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4204
Joined: Sun Jan 03, 2010 5:45 pm

Re: How to use "wxwidgets.props" to select static libraries

Post by PB »

AFAIK, if the .props file detects the DLL build it will use it, so the only way to make it use the static build is to rename the DLL folder (e.g., from lib\vc_dll to lib\Xvc_dll) so it cannot be found.
Post Reply