Comment 0 for bug 964248

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

According to the Google Test documentation[1], it isn't mandatory for distributions to ship the compiled gtest library, but instead applications are expected to use the shipped sources to compile it locally.

Currently FindGTest.cmake only searches for the headers /and/ the library, and since the library is no longer shipped in Ubuntu, GTest is not found and the tests do not build. The fix is to add GTEST_ROOT_DIR as part of the build process so that it is linked as a static lib should searching for the dynamic one fail.