Merge a0a4aa8083ace1f669837c0e089725d9ae2530cc into 3ff51c3e80f2c2eb105d43ecb9acab9a62e01600

This commit is contained in:
gitplcc 2026-07-28 20:53:43 +02:00 committed by GitHub
commit 4f29e71420
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()