aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-01-22 16:28:25 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-01-22 16:28:25 +0100
commit915781381e8d62255f56f3b0d0e7066bc8ee94c2 (patch)
treefd54f81519cd03d594a09182a0308f3b2867695e /cmake/Modules
parent21a45e89c5839a6f25687359fb3c42a3123d33d8 (diff)
downloadlibssh-915781381e8d62255f56f3b0d0e7066bc8ee94c2.tar.gz
libssh-915781381e8d62255f56f3b0d0e7066bc8ee94c2.tar.xz
libssh-915781381e8d62255f56f3b0d0e7066bc8ee94c2.zip
BUG 99: Fix string function if no build type is set.
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/DefineCompilerFlags.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/DefineCompilerFlags.cmake b/cmake/Modules/DefineCompilerFlags.cmake
index d2315721..0283b12f 100644
--- a/cmake/Modules/DefineCompilerFlags.cmake
+++ b/cmake/Modules/DefineCompilerFlags.cmake
@@ -26,7 +26,7 @@ if (UNIX AND NOT WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector")
endif (WITH_STACK_PROTECTOR)
- string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_LOWER)
+ string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
if (NOT CMAKE_BUILD_TYPE_LOWER MATCHES debug)
check_c_compiler_flag("-D_FORTIFY_SOURCE=2" WITH_FORTIFY_SOURCE)
if (WITH_FORTIFY_SOURCE)