diff --git a/cmake/modules/ExternalProject.cmake b/cmake/modules/ExternalProject.cmake
index efe4c404557971d20d77470e839b590eb6d3056d..cf4a04b288e9c5865cb49a878fa3aae074e1ab2c 100644
--- a/cmake/modules/ExternalProject.cmake
+++ b/cmake/modules/ExternalProject.cmake
@@ -580,9 +580,9 @@ endif()
 
 # Update the config.guess files.
 #
-if(LCG_TARGET MATCHES "aarch64")
-message(STATUS \"Updating the config.guess file...\")
-execute_process(COMMAND ${CMAKE_SOURCE_DIR}/cmake/modules/update.ConfigGuess)
+if(LCG_TARGET MATCHES \"aarch64\")
+  message(STATUS \"Updating the config.guess file...\")
+  execute_process(COMMAND ${CMAKE_SOURCE_DIR}/cmake/modules/update.ConfigGuess)
 endif()
 
 # Analyze what came out of the tar file: