[llvm] r222082 - Provide missing definition of uppercase_CMAKE_BUILD_TYPE in HandleLLVMOptions module

Eric Fiselier eric at efcs.ca
Fri Nov 14 23:45:31 PST 2014


Author: ericwf
Date: Sat Nov 15 01:45:31 2014
New Revision: 222082

URL: http://llvm.org/viewvc/llvm-project?rev=222082&view=rev
Log:
Provide missing definition of uppercase_CMAKE_BUILD_TYPE in HandleLLVMOptions module

Modified:
    llvm/trunk/cmake/modules/HandleLLVMOptions.cmake

Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=222082&r1=222081&r2=222082&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Sat Nov 15 01:45:31 2014
@@ -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)





More information about the llvm-commits mailing list