From a90ae4c9b8919209da51b83f5b374a8a6e399c9c Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Wed, 3 Sep 2014 17:15:12 -0600 Subject: [PATCH] cmake: missing quote Found on my old MacBook, where CMAKE_BUILD_TYPE is empty by default. Change-Id: Icf63666f4b4c3f18214ba091819b0238d7f4a225 --- src/GetCompilerInfo.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GetCompilerInfo.cmake b/src/GetCompilerInfo.cmake index 5c3d531956..a827daebed 100644 --- a/src/GetCompilerInfo.cmake +++ b/src/GetCompilerInfo.cmake @@ -1,7 +1,7 @@ # # This file is part of the GROMACS molecular simulation package. # -# Copyright (c) 2012,2013, by the GROMACS development team, led by +# Copyright (c) 2012,2013,2014, by the GROMACS development team, led by # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl, # and including many others, as listed in the AUTHORS file in the # top-level source directory and at http://www.gromacs.org. @@ -43,6 +43,6 @@ # macro(get_compiler_info LANGUAGE BUILD_COMPILER BUILD_FLAGS) set(${BUILD_COMPILER} "${CMAKE_${LANGUAGE}_COMPILER} ${CMAKE_${LANGUAGE}_COMPILER_ID} ${CMAKE_${LANGUAGE}_COMPILER_VERSION}") - string(TOUPPER ${CMAKE_BUILD_TYPE} _build_type) + string(TOUPPER "${CMAKE_BUILD_TYPE}" _build_type) set(${BUILD_FLAGS} "${CMAKE_${LANGUAGE}_FLAGS} ${CMAKE_${LANGUAGE}_FLAGS_${_build_type}}") endmacro() -- 2.22.0