[PATCH] D30470: [cmake] Include openmp with add_llvm_external_project

Pirama Arumuga Nainar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 28 12:20:07 PST 2017


pirama created this revision.
Herald added a subscriber: mgorny.

Include projects/openmp into the build using add_llvm_external_project
instead of add_subdirectory.  This creates an option
LLVM_TOOL_OPENMP_BUILD that selects whether this project gets included
in an in-tree build.


https://reviews.llvm.org/D30470

Files:
  projects/CMakeLists.txt


Index: projects/CMakeLists.txt
===================================================================
--- projects/CMakeLists.txt
+++ projects/CMakeLists.txt
@@ -10,7 +10,8 @@
        (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxxabi) AND
        (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libunwind) AND
        (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/test-suite) AND
-       (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/parallel-libs))
+       (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/parallel-libs) AND
+       (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/openmp))
       add_subdirectory(${entry})
     endif()
   endif()
@@ -35,3 +36,4 @@
 
 add_llvm_external_project(dragonegg)
 add_llvm_external_project(parallel-libs)
+add_llvm_external_project(openmp)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30470.90072.patch
Type: text/x-patch
Size: 810 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170228/882bd1dd/attachment.bin>


More information about the llvm-commits mailing list