koffice/krita

Dmitry Kazakov dimula73 at gmail.com
Tue Jan 26 13:32:17 CET 2010


Btw, Cyrille, is there any way to disable optimizations? I use Debug build
and gdb usually tells me that "the value is optimized out" =(

On Tue, Jan 26, 2010 at 1:07 PM, Cyrille Berger <cyb at lepi.org> wrote:

> SVN commit 1080405 by berger:
>
> Add a build mode for krita developers with (-O2 -g, asserts, and not
> messed up when it arrives in the cache). To use it simply set KritaDevs
> to CMAKE_BUILD_TYPE.
>
> CCMAIL:kimageshop at kde.org <CCMAIL%3Akimageshop at kde.org>
>
>
>
>  M  +4 -2      CMakeLists.txt
>
>
> --- trunk/koffice/krita/CMakeLists.txt #1080404:1080405
> @@ -4,9 +4,11 @@
>  # turn on QImage as buffer for QPainter based canvas
>  add_definitions(-DINDEPENDENT_CANVAS)
>
> -if(GCC)
> +if(CMAKE_COMPILER_IS_GNUCXX)
> +    set(CMAKE_CXX_FLAGS_KRITADEVS "-O2 -g" CACHE STRING "" FORCE)
>     set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-operator-names")
> -endif(GCC)
> +endif(CMAKE_COMPILER_IS_GNUCXX)
> +
>  include(CheckFunctionExists)
>
>  macro_optional_find_package(GLEW)
> _______________________________________________
> kimageshop mailing list
> kimageshop at kde.org
> https://mail.kde.org/mailman/listinfo/kimageshop
>



-- 
Dmitry Kazakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20100126/81fc187f/attachment.htm 


More information about the kimageshop mailing list