This commit is contained in:
gitplcc 2026-09-03 19:30:13 +02:00 committed by GitHub
commit e8487f7039
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

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