r245604 - [CMake] Simplifying logic for USES_TERMINAL on bootstrap targets.
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 20 13:12:20 PDT 2015
Author: cbieneman
Date: Thu Aug 20 15:12:20 2015
New Revision: 245604
URL: http://llvm.org/viewvc/llvm-project?rev=245604&view=rev
Log:
[CMake] Simplifying logic for USES_TERMINAL on bootstrap targets.
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.
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=245604&r1=245603&r2=245604&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Thu Aug 20 15:12:20 2015
@@ -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
More information about the cfe-commits
mailing list