Add GTEST_BOTH_LIBRARIES for link target snappy-unittest#44
Conversation
It's necessary to add ${GTEST_BOTH_LIBRARIES} for link target snappy-unittest to avoid errors about missing GTest symbols. Also I'm not sure why FUND_PACKAGE for GTest and Gflags is with option QUIET, because it's better to know if anything is missing.
|
The |
|
OK, I returned back QUIET in 7f61e75, but I still think it shouldn't be so if target snappy-unittest that is build by default requires it. |
|
snappy-unittest does not currently require googletest. It has its own stubs, which are used in case googletest is not found. As I've mentioned above, the CI builds do not install googletest or gflags. (feel free to look at |
|
I trust you of course, but adding the variable is something needed for building snappy under Linux. Even I build only snappy library, then trying to install fails, because it tries to build snappy-unittest as well. Perhaps snappy-unittest should not be build by default? |
|
How are you building snappy on Linux? This is what we run on CI: If you'd like to avoid building the unit tests (even though they should build just fine), |
|
I simply do the following: but OK, I'll add |
It's necessary to add ${GTEST_BOTH_LIBRARIES} for link target snappy-unittest to avoid errors about missing GTest symbols. Also I'm not sure why FUND_PACKAGE for GTest and Gflags is with option QUIET, because it's better to know if anything is missing.