[Openmp-commits] [PATCH] D73249: [openmp] Disable archer if LIBOMP_OMPT_SUPPORT is off

Michał Górny via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Jan 23 10:30:22 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG3c545e4b7318: [openmp] Disable archer if LIBOMP_OMPT_SUPPORT is off (authored by mgorny).
Herald added a project: OpenMP.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73249/new/

https://reviews.llvm.org/D73249

Files:
  openmp/tools/archer/CMakeLists.txt


Index: openmp/tools/archer/CMakeLists.txt
===================================================================
--- openmp/tools/archer/CMakeLists.txt
+++ openmp/tools/archer/CMakeLists.txt
@@ -8,13 +8,15 @@
   
   
 
-include_directories(${LIBOMP_INCLUDE_DIR})
+if(LIBOMP_OMPT_SUPPORT)
+  include_directories(${LIBOMP_INCLUDE_DIR})
 
-add_library(archer SHARED ompt-tsan.cpp)
-add_library(archer_static STATIC ompt-tsan.cpp)
+  add_library(archer SHARED ompt-tsan.cpp)
+  add_library(archer_static STATIC ompt-tsan.cpp)
 
-install(TARGETS archer archer_static
-  LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
-  ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR})
+  install(TARGETS archer archer_static
+    LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
+    ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR})
 
-add_subdirectory(tests)
+  add_subdirectory(tests)
+endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73249.239938.patch
Type: text/x-patch
Size: 860 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200123/c38f850e/attachment.bin>


More information about the Openmp-commits mailing list