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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222082 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/HandleLLVMOptions.cmake

index b178ad1d027b0b459889dca35603dbe1febed41e..87c3b8501422c5d34e5497099d6dba20f8899523 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)