[CMake] Changing an External MSProject configuration to build DLLs (Dynamic Libraries)

Alan W. Irwin irwin at beluga.phys.uvic.ca
Wed Aug 9 11:27:23 EDT 2006


On 2006-08-09 09:33-0400 Ryan Connelly wrote:

> Hi,
>
> I am working with wxWidgets and I need to add their projects as external 
> ones. I can do that, but I am unable to change the configuration to build 
> "Shared Libraries" (Dlls on windows).
>
> The configurations are Debug,Debug DLL, Release, Release DLL, etc. I want to 
> choose which one I want to build. Any suggestions?

We are in the middle of dealing with this issue ourselves, but for now we
want just the generic (no build configuration at all) result that is
normally supplied by every other FindXXX.cmake module. We haven't tried it
yet, but it appears to me from a quick read of FindwxWidgets.cmake that I
can get that generic result by setting WX_USE_REL_AND_DBG to OFF before
find_package(wxWidgets).  But if anybody here knows a cleaner way to get the
generic build configuration result from the FindwxWidgets.cmake module
please let me know.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list