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)
1515 target_link_libraries (archer ${CMAKE_DL_LIBS} )
1616 add_library (archer_static STATIC ompt-tsan.cpp)
1717
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+
1833 install (TARGETS archer archer_static
1934 LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
2035 ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR} )
Original file line number Diff line number Diff line change @@ -97,6 +97,18 @@ else()
9797 ./src/OmptTesterStandalone.cpp)
9898endif ()
9999
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+
100112# Add common include directories.
101113target_include_directories (omptest PUBLIC
102114 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
You can’t perform that action at this time.
0 commit comments