[CMake] [Fwd: CMake and qmake.conf?]

Michael Jackson mike.jackson at bluequartz.net
Tue Nov 18 16:00:11 EST 2008


On Nov 18, 2008, at 3:54 PM, Eric (Brad) Lemings wrote:

>
>
> From: Gordon Schumacher <gordon at rebit.com>
> Date: November 18, 2008 2:28:03 PM EST
> To: Qt-Interest <qt-interest at trolltech.com>
> Cc: Brad Lemings <brad at rebit.com>
> Subject: CMake and qmake.conf?
>
>
> We've started working some with CMake here, and I've just come  
> across a
> gotcha, I think.
>
> In the qmake.conf files for all Visual Studio compilers later than  
> VC6,
> the flag /Zc:wchar- is included.  I'm not at all sure why this is  
> set -
> someone asked this before and nobody seemed to know - but when we're
> building with CMake, as far as I can tell the qmake.conf file is not
> processed at all, so these flags don't get picked up.
>
> What is the "correct" solution for this issue?  Should the  
> FindQt4.cmake
> module be looking at qmake.conf?  Do we need to (conditionally) set  
> this
> flag ourselves?
>


You can use:

IF (NOT MSVC60)
	ADD_DEFINITIONS( "/Zc:wchar-")
ENDIF(NOT MSVC60)

if you know you need that. I think that should work.

_______________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio





More information about the CMake mailing list