KDE/kdelibs
Alexander Neundorf
neundorf at kde.org
Thu Feb 16 21:14:16 CET 2006
On Thursday 16 February 2006 08:23, you wrote:
> Dirk Mueller schrieb:
> > On Wednesday, 15. February 2006 21:05, Christian Ehrlicher wrote:
> >> fix khtml compile
> >>
> >> +else(MSVC)
> >> set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions")
> >> +endif(MSVC)
> >
> > Thats wrong though. We don't want all of khtml to be compiled with
> > exceptions support. Only khtml/dom should be.
>
> I don't know how to do so - i just changed this because msvc don't know
> anything about -fexceptions. Alex, do you have an idea if this is possible?
>
> Christian
In principle, yes.
set_source_files_properties(${khtmldom_STAT_SRCS} PROPERTIES COMPILE_FLAGS
${KDE4_ENABLE_EXCEPTIONS})
(with KDE4_ENABLE_EXCEPTIONS set to the correct flag depending on the compiler
in FindKDE4.cmake).
The problem with this is that it ends up with:
g++ dom_node.cpp -fexceptions .... -fno-exceptions ...
which means for gcc to use the -fno-exceptions flag.
I'll ask on the cmake list ewhat they think about it.
Bye
Alex
--
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org - http://www.kde.org
alex AT neundorf.net - http://www.neundorf.net
More information about the Kde-buildsystem
mailing list