googletest icon indicating copy to clipboard operation
googletest copied to clipboard

Add GTEST_HAS_PTHREAD to GTest::* target interfaces

Open gitplcc opened this issue 2 years ago • 3 comments
trafficstars

Add -DGTEST_HAS_PTHREAD=0/1 compiler flag to GTest::* CMake targets as pkg-config do.

Using CMake find_package my code compiled & linked smoothly but SIGSEGV when executed. Setting macro in CMAKE_CXX_FLAGS fixed it. I noted pkg-config gtest --cflags includes this macro.

gitplcc avatar Dec 30 '22 16:12 gitplcc

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Dec 30 '22 16:12 google-cla[bot]