Some test targets would not build without this.
Closes #3890
)
target_compile_definitions(gtest PUBLIC GTEST_LANG_CXX11)
if (CYGWIN)
- # Ensure GoogleTest can find POSIX things it needs
- target_compile_definitions(gtest PRIVATE _POSIX_C_SOURCE=200809L)
+ # Ensure GoogleTest and things that use it can find
+ # POSIX things needed by GoogleTest
+ target_compile_definitions(gtest PUBLIC _POSIX_C_SOURCE=200809L)
endif()
gmx_target_warning_suppression(gmock -Wno-deprecated-copy HAVE_NO_DEPRECATED_COPY)