File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ option(LIBOMPTEST_BUILD_STANDALONE
13
13
option (LIBOMPTEST_BUILD_UNITTESTS
14
14
"Build ompTest's unit tests, requires GoogleTest." OFF )
15
15
16
- # In absence of corresponding OMPT support: exit early
17
- if (NOT ${LIBOMP_OMPT_SUPPORT} )
16
+ # Exit early if OMPT support or LLVM-tests were disabled by the user.
17
+ if (( NOT ${LIBOMP_OMPT_SUPPORT} ) OR ( NOT ${LLVM_INCLUDE_TESTS} ) )
18
18
return ()
19
19
endif ()
20
20
@@ -61,12 +61,7 @@ if ((NOT LIBOMPTEST_BUILD_STANDALONE) OR LIBOMPTEST_BUILD_UNITTESTS)
61
61
set (LIBOMPTEST_BUILD_STANDALONE OFF )
62
62
endif ()
63
63
64
- # Make sure target llvm_gtest is available
65
- if (NOT TARGET llvm_gtest )
66
- message (FATAL_ERROR "Required target not found: llvm_gtest" )
67
- endif ()
68
-
69
- # Add llvm_gtest as dependency
64
+ # Add dependency llvm_gtest; emits error if unavailable.
70
65
add_dependencies (omptest llvm_gtest )
71
66
72
67
# Link llvm_gtest as whole-archive to expose required symbols
You can’t perform that action at this time.
0 commit comments