Skip to content

Commit b86c3b2

Browse files
mgornyzmodem
authored andcommitted
[openmp] Disable archer if LIBOMP_OMPT_SUPPORT is off
This fixed build failures due to missing ompt headers. See https://bugs.gentoo.org/700762. Differential Revision: https://reviews.llvm.org/D73249 (cherry picked from commit 3c545e4)
1 parent 4d5a200 commit b86c3b2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

openmp/tools/archer/CMakeLists.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88

99

1010

11-
include_directories(${LIBOMP_INCLUDE_DIR})
11+
if(LIBOMP_OMPT_SUPPORT)
12+
include_directories(${LIBOMP_INCLUDE_DIR})
1213

13-
add_library(archer SHARED ompt-tsan.cpp)
14-
add_library(archer_static STATIC ompt-tsan.cpp)
14+
add_library(archer SHARED ompt-tsan.cpp)
15+
add_library(archer_static STATIC ompt-tsan.cpp)
1516

16-
install(TARGETS archer archer_static
17-
LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
18-
ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR})
17+
install(TARGETS archer archer_static
18+
LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
19+
ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR})
1920

20-
add_subdirectory(tests)
21+
add_subdirectory(tests)
22+
endif()

0 commit comments

Comments
 (0)