summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@sun.com>2010-01-21 12:37:22 +0000
committerVladislav Vaintroub <wlad@sun.com>2010-01-21 12:37:22 +0000
commit4acc380f15ec1ec51a96e748b8c2261ed61afa15 (patch)
tree4cae013b448a856157e2a456f9708f915892e85b /CMakeLists.txt
parente4687956c10cdf73d00f34e07a59d84603bf4500 (diff)
downloadmariadb-git-4acc380f15ec1ec51a96e748b8c2261ed61afa15.tar.gz
restore lost -g when WITH_DEBUG was specified
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-xCMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d2f33bf6571..752e66ae746 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -147,9 +147,11 @@ ENDIF()
IF(WITH_DEBUG OR WITH_DEBUG_FULL AND NOT WIN32)
FOREACH(LANG C CXX)
IF(WITH_DEBUG_FULL)
- SET(CMAKE_${LANG}_FLAGS_DEBUG "-DSAFEMALLOC -DSAFE_MUTEX")
+ SET(CMAKE_${LANG}_FLAGS_DEBUG
+ "${CMAKE_${LANG}_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")
ELSE()
- SET(CMAKE_${LANG}_FLAGS_DEBUG "-DSAFE_MUTEX")
+ SET(CMAKE_${LANG}_FLAGS_DEBUG
+ "${CMAKE_${LANG}_FLAGS_DEBUG} -DSAFE_MUTEX")
ENDIF()
ENDFOREACH()
ENDIF()