NFC. Fixing my consistently incorrect spelling.
[oota-llvm.git] / 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)
-  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
-        -D${varaibleName}=${${value}})
+        -D${variableName}=${${value}})
     endif()
   endforeach()