diff --git a/googletest/cmake/internal_utils.cmake b/googletest/cmake/internal_utils.cmake index 41405587..ed8ffa3f 100644 --- a/googletest/cmake/internal_utils.cmake +++ b/googletest/cmake/internal_utils.cmake @@ -187,6 +187,8 @@ function(cxx_library_with_type name type cxx_flags) $) endif() endif() + target_compile_definitions(${name} INTERFACE + $>) if (DEFINED GTEST_HAS_PTHREAD) if ("${CMAKE_VERSION}" VERSION_LESS "3.1.0") set(threads_spec ${CMAKE_THREAD_LIBS_INIT})