File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,21 @@ if(LIBOMP_OMPT_SUPPORT AND LIBOMP_ARCHER_SUPPORT)
15
15
target_link_libraries (archer ${CMAKE_DL_LIBS} )
16
16
add_library (archer_static STATIC ompt-tsan.cpp)
17
17
18
+ if (TARGET cxx-headers)
19
+ add_dependencies (archer cxx-headers)
20
+ add_dependencies (archer_static cxx-headers)
21
+ endif ()
22
+
23
+ if (TARGET cxx_shared)
24
+ add_dependencies (archer cxx_shared)
25
+ add_dependencies (archer_static cxx_shared)
26
+ endif ()
27
+
28
+ if (TARGET cxxabi_shared)
29
+ add_dependencies (archer cxxabi_shared)
30
+ add_dependencies (archer_static cxxabi_shared)
31
+ endif ()
32
+
18
33
install (TARGETS archer archer_static
19
34
LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
20
35
ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR} )
Original file line number Diff line number Diff line change @@ -97,6 +97,18 @@ else()
97
97
./src/OmptTesterStandalone.cpp)
98
98
endif ()
99
99
100
+ if (TARGET cxx-headers)
101
+ add_dependencies (omptest cxx-headers)
102
+ endif ()
103
+
104
+ if (TARGET cxx_shared)
105
+ add_dependencies (omptest cxx_shared)
106
+ endif ()
107
+
108
+ if (TARGET cxxabi_shared)
109
+ add_dependencies (omptest cxxabi_shared)
110
+ endif ()
111
+
100
112
# Add common include directories.
101
113
target_include_directories (omptest PUBLIC
102
114
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
You can’t perform that action at this time.
0 commit comments