diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-07-24 13:06:33 -0400 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2014-07-24 10:11:18 -0700 |
commit | f44d08e206d7ea81e6ffe26a8b5d7bea1545d7c7 (patch) | |
tree | 0b037b67fda255383eddb105b8124ee42a656f25 /cmake/Modules | |
parent | a7a7183098d6a7a040398eaf0c368909b14b24de (diff) |
cmake: make build type check insensitive to case
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/GrBuildTypes.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/Modules/GrBuildTypes.cmake b/cmake/Modules/GrBuildTypes.cmake index aa59d0089f..8d6f08b7af 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}") |