mirror of https://github.com/google/googletest.git
Merge a0a4aa8083 into 283c17563f
This commit is contained in:
commit
e8487f7039
|
|
@ -182,6 +182,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…
Reference in New Issue