aboutsummaryrefslogtreecommitdiff
path: root/modules/FindMySQL.cmake
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2009-08-19 08:57:47 +0000
committerDavid Faure <faure@kde.org>2009-08-19 08:57:47 +0000
commit6f3e9e9fb2fce5412ef5e4b710f52d965e20d337 (patch)
tree0cb40716654e62f8c2a58336feeebf3275d086f0 /modules/FindMySQL.cmake
parent0ad628ce96572f7c2abfd561d580e52cd49a7b37 (diff)
downloadextra-cmake-modules-6f3e9e9fb2fce5412ef5e4b710f52d965e20d337.tar.gz
extra-cmake-modules-6f3e9e9fb2fce5412ef5e4b710f52d965e20d337.tar.bz2
aclemens asked whether CMAKE_BUILD_TYPE was case sensitive; it's not, except for those two buggy checks - fixed.
svn path=/trunk/KDE/kdelibs/; revision=1013192
Diffstat (limited to 'modules/FindMySQL.cmake')
-rw-r--r--modules/FindMySQL.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/FindMySQL.cmake b/modules/FindMySQL.cmake
index 6a0f8941..78332714 100644
--- a/modules/FindMySQL.cmake
+++ b/modules/FindMySQL.cmake
@@ -38,18 +38,20 @@ else(WIN32)
endif(WIN32)
if(WIN32)
+ string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_TOLOWER)
+
# path suffix for debug/release mode
# binary_dist: mysql binary distribution
# build_dist: custom build
- if(CMAKE_BUILD_TYPE STREQUAL "Debug")
+ if(CMAKE_BUILD_TYPE_TOLOWER STREQUAL "debug")
set(binary_dist debug)
set(build_dist Debug)
- else(CMAKE_BUILD_TYPE STREQUAL "Debug")
+ else(CMAKE_BUILD_TYPE_TOLOWER STREQUAL "debug")
ADD_DEFINITIONS(-DDBUG_OFF)
set(binary_dist opt)
set(build_dist Release)
- endif(CMAKE_BUILD_TYPE STREQUAL "Debug")
-
+ endif(CMAKE_BUILD_TYPE_TOLOWER STREQUAL "debug")
+
# find_library(MYSQL_LIBRARIES NAMES mysqlclient
find_library(MYSQL_LIBRARIES NAMES libmysql
PATHS