diff --git a/googletest/cmake/internal_utils.cmake b/googletest/cmake/internal_utils.cmake index 5bcef779..9ff3eb31 100644 --- a/googletest/cmake/internal_utils.cmake +++ b/googletest/cmake/internal_utils.cmake @@ -182,6 +182,8 @@ function(cxx_library_with_type name type cxx_flags) INSTALL_RPATH "$ORIGIN") endif() endif() + target_compile_definitions(${name} INTERFACE + $>) if (DEFINED GTEST_HAS_PTHREAD) target_link_libraries(${name} PUBLIC Threads::Threads) endif()