We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d5a200 commit b86c3b2Copy full SHA for b86c3b2
openmp/tools/archer/CMakeLists.txt
@@ -8,13 +8,15 @@
8
9
10
11
-include_directories(${LIBOMP_INCLUDE_DIR})
+if(LIBOMP_OMPT_SUPPORT)
12
+ include_directories(${LIBOMP_INCLUDE_DIR})
13
-add_library(archer SHARED ompt-tsan.cpp)
14
-add_library(archer_static STATIC ompt-tsan.cpp)
+ add_library(archer SHARED ompt-tsan.cpp)
15
+ add_library(archer_static STATIC ompt-tsan.cpp)
16
-install(TARGETS archer archer_static
17
- LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
18
- ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR})
+ install(TARGETS archer archer_static
+ LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
19
+ ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR})
20
-add_subdirectory(tests)
21
+ add_subdirectory(tests)
22
+endif()
0 commit comments