Skip to content

Commit 52e8a6e

Browse files
jprotzemhalk
authored andcommitted
Add missing build dependencies
1 parent 58ab93d commit 52e8a6e

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

openmp/tools/archer/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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})

openmp/tools/omptest/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,18 @@ else()
9797
./src/OmptTesterStandalone.cpp)
9898
endif()
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.
101113
target_include_directories(omptest PUBLIC
102114
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>

0 commit comments

Comments
 (0)