diff --git a/googletest/cmake/internal_utils.cmake b/googletest/cmake/internal_utils.cmake index 4ce3717fb..e644a95bb 100644 --- a/googletest/cmake/internal_utils.cmake +++ b/googletest/cmake/internal_utils.cmake @@ -208,6 +208,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()