cvs: gd /libgd CMakeLists.txt
[email protected] ("Pierre-Alain Joye") Sat, 09 Feb 2008 02:18:31 -0000
| Newsgroups | php.gd.cvs |
|---|---|
| Message-ID | <cvspajoye1202523511@cvsserver> |
pajoye Sat Feb 9 02:18:31 2008 UTC
Modified files:
/gd/libgd CMakeLists.txt
Log:
- silent error when no build type are given
http://cvs.php.net/viewvc.cgi/gd/libgd/CMakeLists.txt?r1=1.15&r2=1.16&diff_format=u
Index: gd/libgd/CMakeLists.txt
diff -u gd/libgd/CMakeLists.txt:1.15 gd/libgd/CMakeLists.txt:1.16
--- gd/libgd/CMakeLists.txt:1.15 Sat Feb 9 01:59:27 2008
+++ gd/libgd/CMakeLists.txt Sat Feb 9 02:18:31 2008
@@ -1,4 +1,4 @@
-# $Id: CMakeLists.txt,v 1.15 2008/02/09 01:59:27 pajoye Exp $
+# $Id: CMakeLists.txt,v 1.16 2008/02/09 02:18:31 pajoye Exp $
SET(PACKAGE GD)
SET(PACKAGE_NAME GD)
@@ -34,13 +34,14 @@
ENABLE_TESTING()
endif(BUILD_TEST)
+
if (NOT WIN32)
- if(DEFINED CMAKE_BUILD_TYPE)
+ if(CMAKE_BUILD_TYPE)
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)
- endif(DEFINED CMAKE_BUILD_TYPE)
+ endif(CMAKE_BUILD_TYPE)
endif (NOT WIN32)
if (USE_EXT_GD)