[OpenMP][OMPT] Remove Threads dependency from omptest (#185930)
Removed link against `Threads`. Reason: it is potentially problematic and optional. The issue would manifest, if `omptest` is used via `find_package`. But `Threads` might not be found and cause a link error.
This commit is contained in:
parent
754abc19f0
commit
5f97e191b3
@ -87,10 +87,6 @@ if ((NOT LIBOMPTEST_BUILD_STANDALONE) OR LIBOMPTEST_BUILD_UNITTESTS)
|
||||
# available to dependant targets, e.g. for unit tests.
|
||||
target_link_libraries(omptest PUBLIC default_gtest)
|
||||
|
||||
# Link against Threads (recommended for GTest).
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(omptest PUBLIC Threads::Threads)
|
||||
|
||||
# Ensure that embedded GTest symbols are exported from libomptest.so even in
|
||||
# builds that default to hidden.
|
||||
set_target_properties(omptest PROPERTIES
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user