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



From: Gordon Schumacher <[EMAIL PROTECTED]>
Date: November 18, 2008 2:28:03 PM EST
To: Qt-Interest <[EMAIL PROTECTED]>
Cc: Brad Lemings <[EMAIL PROTECTED]>
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                  [EMAIL PROTECTED]
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to