From 787f6e02997c32d42cf8935f6e31a9c3760742ab Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Wed, 9 Dec 2009 16:30:58 +0000 Subject: [PATCH] Small fix --- buildtools/gt.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildtools/gt.cmake b/buildtools/gt.cmake index 0e6739a53..b45c34961 100644 --- a/buildtools/gt.cmake +++ b/buildtools/gt.cmake @@ -17,7 +17,8 @@ IF(NOT CMAKE_INSTALL_PREFIX OR CMAKE_INSTALL_PREFIX STREQUAL "/usr/local") ENDIF() # Set the default build type -IF(NOT CMAKE_BUILD_TYPE) +IF(NOT DEFINED CMAKE_BUILD_TYPE) + message(STATUS "[gt.cmake] CMAKE_BUILD_TYPE not defined, defaulting to Debug") SET(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)