]> granicus.if.org Git - clang/commitdiff
[CMake] Simplifying logic for USES_TERMINAL on bootstrap targets.
authorChris Bieneman <beanz@apple.com>
Thu, 20 Aug 2015 20:12:20 +0000 (20:12 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 20 Aug 2015 20:12:20 +0000 (20:12 +0000)
In CMake variables that haven't been set are evaluated to empty strings, so we don't need to set the variables to empty strings.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245604 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 4e4ee515444dc3bf6e19e655eb971882f7e80475..8ec02208cf172cd69375e52aaa30bda789a5af4e 100644 (file)
@@ -563,10 +563,7 @@ if (CLANG_ENABLE_BOOTSTRAP)
     set(cmake_3_1_EXCLUDE_FROM_ALL EXCLUDE_FROM_ALL 1)
   endif()
 
-  if(CMAKE_VERSION VERSION_LESS 3.3.20150708)
-    set(cmake_3_4_USES_TERMINAL_OPTIONS)
-    set(cmake_3_4_USES_TERMINAL)
-  else()
+  if(CMAKE_VERSION VERSION_GREATER 3.3.20150708)
     set(cmake_3_4_USES_TERMINAL_OPTIONS
       USES_TERMINAL_CONFIGURE 1
       USES_TERMINAL_BUILD 1