[CMake] FindQt4 QT_LIBRARIES

Hicham Mouline hicham at mouline.org
Thu Jul 29 16:46:24 EDT 2010


-----Original Message-----
From: John Drescher [mailto:drescherjm at gmail.com] 
Sent: 29 July 2010 21:35
To: Hicham Mouline; CMake mailing list
Subject: Re: [CMake] FindQt4 QT_LIBRARIES

> It does crash currently with release libs for relwithdebingfo config. If I
> link against debug libs, it doesn't crash.
> The question is: when config is relwithdebingfo, how can I get
> TARGET_LINK_LIBRARIES to pick the debug version of the libs from
> QT_LIBRARIES?
>

I use Qt release libs with my RelWithDebInfo all the time (2+ years).
Since that is the only release build that I use with CMake.

I would use depends to verify what .dlls are being used. This one case
with a crash I believe I forgot to build 1 lib for RelWithDebInfo and
that ended up bringing in Qt debug.

John

-----------------------------------------
You are right. Apologies.

I had other libraries that had the debug version (linked against debug
runtime) and that was the culprit (std::string).
Now all libs are release with RelWithDebInfo and that works.

Rds, 



More information about the CMake mailing list