[Openmp-commits] [PATCH] D28280: [CMake] Make openmp build under runtimes/
Jonas Hahnfeld via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Jan 4 01:41:51 PST 2017
Hahnfeld created this revision.
Hahnfeld added reviewers: jlpeyton, AndreyChurbanov, beanz.
Hahnfeld added a subscriber: openmp-commits.
Herald added a subscriber: mgorny.
runtimes/CMakeLists.txt in LLVM passes `OPENMP_STANDALONE_BUILD`.
https://reviews.llvm.org/D28280
Files:
runtime/CMakeLists.txt
Index: runtime/CMakeLists.txt
===================================================================
--- runtime/CMakeLists.txt
+++ runtime/CMakeLists.txt
@@ -17,7 +17,8 @@
# Standalone build or part of LLVM?
set(LIBOMP_STANDALONE_BUILD FALSE)
-if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}" OR
+if(OPENMP_STANDALONE_BUILD OR
+ "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}" OR
"${CMAKE_SOURCE_DIR}/runtime" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
project(libomp C CXX)
set(LIBOMP_STANDALONE_BUILD TRUE)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28280.83019.patch
Type: text/x-patch
Size: 548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170104/96708219/attachment.bin>
More information about the Openmp-commits
mailing list