[CMake] One more attempt to fix PR24144.
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 16 Jul 2015 21:20:05 +0000 (21:20 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 16 Jul 2015 21:20:05 +0000 (21:20 +0000)
This time, exclude ExternalProject from build using set_target_properties.

llvm-svn: 242444

compiler-rt/cmake/Modules/AddCompilerRT.cmake

index ab155bf..5ea313b 100644 (file)
@@ -245,7 +245,6 @@ macro(add_custom_libcxx name prefix)
     list(APPEND LIBCXX_DEPS clang)
   endif()
 
-  set(EXCLUDE_FROM_ALL TRUE)
   ExternalProject_Add(${name}
     PREFIX ${prefix}
     SOURCE_DIR ${COMPILER_RT_LIBCXX_PATH}
@@ -259,6 +258,7 @@ macro(add_custom_libcxx name prefix)
     LOG_CONFIGURE 1
     LOG_INSTALL 1
     )
+  set_target_properties(${name} PROPERTIES EXCLUDE_FROM_ALL TRUE)
 
   ExternalProject_Add_Step(${name} force-reconfigure
     DEPENDERS configure
@@ -272,5 +272,4 @@ macro(add_custom_libcxx name prefix)
     DEPENDERS configure
     DEPENDS ${LIBCXX_DEPS}
     )
-  set(EXCLUDE_FROM_ALL FALSE)
 endmacro()