mirror of
https://github.com/google/googletest.git
synced 2026-07-30 16:26:24 +08:00
Merge a0a4aa8083ace1f669837c0e089725d9ae2530cc into a0f06a70e3da7afa88da9527c43951bca1f7cef2
This commit is contained in:
commit
8b3bfa72f8
@ -208,6 +208,8 @@ function(cxx_library_with_type name type cxx_flags)
|
||||
INSTALL_RPATH "$ORIGIN")
|
||||
endif()
|
||||
endif()
|
||||
target_compile_definitions(${name} INTERFACE
|
||||
$<INSTALL_INTERFACE:GTEST_HAS_PTHREAD=$<BOOL:${GTEST_HAS_PTHREAD}>>)
|
||||
if (DEFINED GTEST_HAS_PTHREAD)
|
||||
target_link_libraries(${name} PUBLIC Threads::Threads)
|
||||
endif()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user