koffice/krita

Cyrille Berger cyb at lepi.org
Tue Jan 26 11:07:29 CET 2010


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



 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)


More information about the kimageshop mailing list