[CMake] Removing duplicates from the list of test suites to generate targets for.
[oota-llvm.git] / cmake / modules / ChooseMSVCCRT.cmake
index 25ed9c71f1ab063acd76e076e25551899b90885e..0e6e1aa55254e51480ba489e54c545c7a6accc25 100644 (file)
@@ -64,14 +64,14 @@ variables (LLVM_USE_CRT_DEBUG, etc) instead.")
     string(TOUPPER "${build_type}" build)
     if (NOT LLVM_USE_CRT_${build})
       get_current_crt(LLVM_USE_CRT_${build}
-       MSVC_CRT_REGEX
-       CMAKE_CXX_FLAGS_${build})
+        MSVC_CRT_REGEX
+        CMAKE_CXX_FLAGS_${build})
       set(LLVM_USE_CRT_${build}
-       "${LLVM_USE_CRT_${build}}"
-       CACHE STRING "Specify VC++ CRT to use for ${build_type} configurations."
-       FORCE)
+        "${LLVM_USE_CRT_${build}}"
+        CACHE STRING "Specify VC++ CRT to use for ${build_type} configurations."
+        FORCE)
       set_property(CACHE LLVM_USE_CRT_${build}
-       PROPERTY STRINGS ;${${MSVC_CRT}})
+        PROPERTY STRINGS ;${${MSVC_CRT}})
     endif(NOT LLVM_USE_CRT_${build})
   endforeach(build_type)
 
@@ -84,7 +84,7 @@ variables (LLVM_USE_CRT_DEBUG, etc) instead.")
       list(FIND ${MSVC_CRT} ${LLVM_USE_CRT_${build}} idx)
       if (idx LESS 0)
         message(FATAL_ERROR
-         "Invalid value for LLVM_USE_CRT_${build}: ${LLVM_USE_CRT_${build}}. Valid options are one of: ${${MSVC_CRT}}")
+          "Invalid value for LLVM_USE_CRT_${build}: ${LLVM_USE_CRT_${build}}. Valid options are one of: ${${MSVC_CRT}}")
       endif (idx LESS 0)
       message(STATUS "Using ${build_type} VC++ CRT: ${LLVM_USE_CRT_${build}}")
     endif()