NFC. Fixing my consistently incorrect spelling.
authorChris Bieneman <beanz@apple.com>
Mon, 23 Nov 2015 23:34:09 +0000 (23:34 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 23 Nov 2015 23:34:09 +0000 (23:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253936 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/LLVMExternalProjectUtils.cmake

index 01d5e337b8d5abf531ca0e1e8bcbcae14faaa8dc..5d8fb71e08b33f9571948f6c0a69f8dbf76d677a 100644 (file)
@@ -91,11 +91,11 @@ function(llvm_ExternalProject_Add name source_dir)
   # Find all variables that start with COMPILER_RT and populate a variable with
   # them.
   get_cmake_property(variableNames VARIABLES)
   # Find all variables that start with COMPILER_RT and populate a variable with
   # them.
   get_cmake_property(variableNames VARIABLES)
-  foreach(varaibleName ${variableNames})
-    if(varaibleName MATCHES "^${nameCanon}")
-      string(REPLACE ";" "\;" value "${${varaibleName}}")
+  foreach(variableName ${variableNames})
+    if(variableName MATCHES "^${nameCanon}")
+      string(REPLACE ";" "\;" value "${${variableName}}")
       list(APPEND PASSTHROUGH_VARIABLES
       list(APPEND PASSTHROUGH_VARIABLES
-        -D${varaibleName}=${${value}})
+        -D${variableName}=${${value}})
     endif()
   endforeach()
 
     endif()
   endforeach()