Provide missing definition of uppercase_CMAKE_BUILD_TYPE in HandleLLVMOptions module
authorEric Fiselier <eric@efcs.ca>
Sat, 15 Nov 2014 07:45:31 +0000 (07:45 +0000)
committerEric Fiselier <eric@efcs.ca>
Sat, 15 Nov 2014 07:45:31 +0000 (07:45 +0000)
llvm-svn: 222082

llvm/cmake/modules/HandleLLVMOptions.cmake

index b178ad1..87c3b85 100644 (file)
@@ -2,6 +2,10 @@
 # options and executing the appropriate CMake commands to realize the users'
 # selections.
 
+# This is commonly needed so make sure it's defined before we include anything
+# else.
+string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
+
 include(HandleLLVMStdlib)
 include(AddLLVMDefinitions)
 include(CheckCCompilerFlag)