[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: KDE/kdelibs/kparts/tests
From:       Matthias Kretz <kretz () kde ! org>
Date:       2007-06-09 15:29:20
Message-ID: 200706091729.24909.kretz () kde ! org
[Download RAW message or body]


On Saturday 09 June 2007, Thiago Macieira wrote:
> Holger Freyther wrote:
> >Am 09.06.2007 um 12:47 schrieb David Faure:
> >> Damn I had reverted the addition of -pedantic in my
> >> FindKDE4Internal.cmake to be able to commit changes to it earlier on.
> >>
> >> Can someone remind me how to set -pedantic in the cxxflags without
> >> editing a version-controlled file?
> >> Is some env var useable for this?
> >
> >I assume CPPFLAGS are honored by cmake.
>
> No, I don't think it is.
>
> First, CPPFLAGS would be the preprocessor flags. You'd want CXXFLAGS for
> the C++ compiler flags.
>
> And you have to set CMAKE_CXX_FLAGS and also set CMAKE_BUILD_TYPE to
> custom.

Just setting CXXFLAGS before running cmake works for me. cmake then puts it in 
CMAKE_CXX_FLAGS in CMakeCache.txt
my CMAKE_BUILD_TYPE is Debug

-- 
________________________________________________________
Matthias Kretz (Germany)                            <><
http://Vir.homelinux.org/
MatthiasKretz@gmx.net, kretz@kde.org,
Matthias.Kretz@urz.uni-heidelberg.de

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic