cvs: gd /libgd CMakeLists.txt

From: Date: Fri, 28 Dec 2007 16:47:53 +0000
Subject: cvs: gd /libgd CMakeLists.txt
Groups: php.gd.cvs 
Request: Send a blank email to php-gd-cvs+get-387@lists.php.net to get a copy of this message
pajoye Fri Dec 28 16:47:53 2007 UTC Modified files: /gd/libgd CMakeLists.txt Log: - add -Wall and -O0 for the debug build type http://cvs.php.net/viewvc.cgi/gd/libgd/CMakeLists.txt?r1=1.10&r2=1.11&diff_format=u Index: gd/libgd/CMakeLists.txt diff -u gd/libgd/CMakeLists.txt:1.10 gd/libgd/CMakeLists.txt:1.11 --- gd/libgd/CMakeLists.txt:1.10 Wed Nov 28 20:19:24 2007 +++ gd/libgd/CMakeLists.txt Fri Dec 28 16:47:52 2007 @@ -1,4 +1,4 @@ -# $Id: CMakeLists.txt,v 1.10 2007/11/28 20:19:24 pajoye Exp $ +# $Id: CMakeLists.txt,v 1.11 2007/12/28 16:47:52 pajoye Exp $ CMAKE_MINIMUM_REQUIRED(VERSION 2.4.3 FATAL_ERROR) PROJECT(GD) @@ -30,6 +30,11 @@ ENABLE_TESTING() endif(BUILD_TEST) +STRING(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_TOLOWER) +IF (CMAKE_BUILD_TYPE_TOLOWER MATCHES debug) + set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -O0") +ENDIF (CMAKE_BUILD_TYPE_TOLOWER MATCHES debug) + if (USE_EXT_GD) message("Using GD at: ${USE_EXT_GD}") INCLUDE_DIRECTORIES(BEFORE ${GD_INCLUDE_DIR})

« previous php.gd.cvs (#387) next »