packaging: remove version dep for libstdc++-devel
[platform/upstream/llvm.git] / projects / CMakeLists.txt
index fc6483c..e23a277 100644 (file)
@@ -5,6 +5,7 @@ file(GLOB entries *)
 foreach(entry ${entries})
   if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)
     if((NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt) AND
+       (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/dragonegg) AND
        (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxx))
       add_subdirectory(${entry})
     endif()
@@ -19,9 +20,9 @@ if(${LLVM_BUILD_RUNTIME})
   if(NOT MSVC)
     add_llvm_external_project(libcxx)
   endif()
-  if(${CMAKE_VERSION} VERSION_GREATER 2.8.7)
+  if(NOT LLVM_BUILD_EXTERNAL_COMPILER_RT)
     add_llvm_external_project(compiler-rt)
-  else()
-    message(WARNING "Can't build compiler-rt, CMake 2.8.8 required!")
   endif()
 endif()
+
+add_llvm_external_project(dragonegg)