commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 03/04: cmake: make build type check insensi


From: git
Subject: [Commit-gnuradio] [gnuradio] 03/04: cmake: make build type check insensitive to case
Date: Thu, 24 Jul 2014 18:11:16 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit f44d08e206d7ea81e6ffe26a8b5d7bea1545d7c7
Author: Tom Rondeau <address@hidden>
Date:   Thu Jul 24 13:06:33 2014 -0400

    cmake: make build type check insensitive to case
---
 cmake/Modules/GrBuildTypes.cmake | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/cmake/Modules/GrBuildTypes.cmake b/cmake/Modules/GrBuildTypes.cmake
index aa59d00..8d6f08b 100644
--- a/cmake/Modules/GrBuildTypes.cmake
+++ b/cmake/Modules/GrBuildTypes.cmake
@@ -53,10 +53,12 @@ list(APPEND AVAIL_BUILDTYPES
 # the avialable build types.
 ########################################################################
 function(GR_CHECK_BUILD_TYPE settype)
+  STRING(TOUPPER ${settype} _settype)
   foreach(btype ${AVAIL_BUILDTYPES})
-    if(${settype} STREQUAL ${btype})
+    STRING(TOUPPER ${btype} _btype)
+    if(${_settype} STREQUAL ${_btype})
       return() # found it; exit cleanly
-    endif(${settype} STREQUAL ${btype})
+    endif(${_settype} STREQUAL ${_btype})
   endforeach(btype)
   # Build type not found; error out
   message(FATAL_ERROR "Build type '${settype}' not valid, must be one of: 
${AVAIL_BUILDTYPES}")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]