From 3327b6a6217e546bf21cca3262e0c8608f6fe0f8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 18 Dec 2008 17:09:12 +0000 Subject: [PATCH] From Bob Kuehne, "minor tweak to the cmake root file to handle debug correctly on os x." --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1377f8230..1a1c6da7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -430,11 +430,11 @@ ENDIF("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") SET(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "add a postfix, usually d on windows") ADD_DEFINITIONS(-DOSG_DEBUG_POSTFIX=${CMAKE_DEBUG_POSTFIX}) -IF(UNIX AND NOT WIN32 AND NOT APPLE) +IF(UNIX AND NOT WIN32) IF(CMAKE_BUILD_TYPE STREQUAL "Debug") ADD_DEFINITIONS("-D_DEBUG") ENDIF(CMAKE_BUILD_TYPE STREQUAL "Debug") -ENDIF(UNIX AND NOT WIN32 AND NOT APPLE) +ENDIF(UNIX AND NOT WIN32) IF(CYGWIN) IF(CMAKE_BUILD_TYPE STREQUAL "Debug")