r245603 - [CMake] Exclude 'bootstrap' target from 'all' where possible.
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 20 13:12:18 PDT 2015
Author: cbieneman
Date: Thu Aug 20 15:12:18 2015
New Revision: 245603
URL: http://llvm.org/viewvc/llvm-project?rev=245603&view=rev
Log:
[CMake] Exclude 'bootstrap' target from 'all' where possible.
EXCLUDE_FROM_ALL in ExternalProject is only available on CMake 3.1 and later.
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=245603&r1=245602&r2=245603&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Thu Aug 20 15:12:18 2015
@@ -559,6 +559,10 @@ endif ()
if (CLANG_ENABLE_BOOTSTRAP)
include(ExternalProject)
+ if(CMAKE_VERSION VERSION_GREATER 3.1.0)
+ 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)
@@ -594,6 +598,7 @@ if (CLANG_ENABLE_BOOTSTRAP)
SOURCE_DIR ${CMAKE_SOURCE_DIR}
STAMP_DIR ${STAMP_DIR}
BINARY_DIR ${BINARY_DIR}
+ ${cmake_3_1_EXCLUDE_FROM_ALL}
CMAKE_ARGS
# We shouldn't need to set this here, but INSTALL_DIR doesn't
# seem to work, so instead I'm passing this through
More information about the cfe-commits
mailing list