cmake: missing quote
[alexxy/gromacs.git] / src / GetCompilerInfo.cmake
index 5c3d5319560ce9dfc45426718e690e145e32890f..a827daebed40fe328f9b9ae61946ff3262da2743 100644 (file)
@@ -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()