mirror of
https://github.com/google/googletest.git
synced 2025-12-07 01:06:50 +08:00
Merge a0a4aa8083ace1f669837c0e089725d9ae2530cc into 1b96fa13f549387b7549cc89e1a785cf143a1a50
This commit is contained in:
commit
35d9e46bd3
@ -191,6 +191,8 @@ function(cxx_library_with_type name type cxx_flags)
|
|||||||
target_compile_definitions(${name} INTERFACE
|
target_compile_definitions(${name} INTERFACE
|
||||||
$<INSTALL_INTERFACE:GTEST_LINKED_AS_SHARED_LIBRARY=1>)
|
$<INSTALL_INTERFACE:GTEST_LINKED_AS_SHARED_LIBRARY=1>)
|
||||||
endif()
|
endif()
|
||||||
|
target_compile_definitions(${name} INTERFACE
|
||||||
|
$<INSTALL_INTERFACE:GTEST_HAS_PTHREAD=$<BOOL:${GTEST_HAS_PTHREAD}>>)
|
||||||
if (DEFINED GTEST_HAS_PTHREAD)
|
if (DEFINED GTEST_HAS_PTHREAD)
|
||||||
target_link_libraries(${name} PUBLIC Threads::Threads)
|
target_link_libraries(${name} PUBLIC Threads::Threads)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user