[CMake] Visual Studio 10 and wxWidgets

Mauro Ziliani mauro.ziliani.tmp at gmail.com
Fri Dec 11 13:06:05 EST 2015


Hi all.
I solved my problem with a custom script.

I attach it to this message.
The script is very very poor, but for my purpouse it works.

The script should be simply included

MZ

On Thu, Dec 10, 2015 at 4:23 PM, Mauro Ziliani <mauro.ziliani.tmp at gmail.com>
wrote:

> Hi all.
> I'm in trouble with wxWidgets 3 and Visual Studio 10 express.
>
> I need to change the type of libraries depending on the  configuration
> compiler
>
> If I compile in debug mode I need wxbase30ud.lib, while in release mode
> wxbase30u
>
> But if I generate the project for VS2010Express the  wxbase30u.lib is
> always linked.
>
> How can I setup my CMakeLists to have wxbase30ud when I build Debug and
> wxbase30u in Release?
>
> Thanks to all in advance.
>
> MZ
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151211/5deeaf20/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxwidgets.cmake
Type: application/octet-stream
Size: 1015 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151211/5deeaf20/attachment.obj>


More information about the CMake mailing list