summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openmp/tools/archer/CMakeLists.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/openmp/tools/archer/CMakeLists.txt b/openmp/tools/archer/CMakeLists.txt
index df1cf9d17af..85405affe8f 100644
--- a/openmp/tools/archer/CMakeLists.txt
+++ b/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()
OpenPOWER on IntegriCloud