cmake: missing quote
authorChristoph Junghans <junghans@votca.org>
Wed, 3 Sep 2014 23:15:12 +0000 (17:15 -0600)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 4 Sep 2014 04:33:47 +0000 (06:33 +0200)
Found on my old MacBook, where CMAKE_BUILD_TYPE is empty by default.

Change-Id: Icf63666f4b4c3f18214ba091819b0238d7f4a225

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()