[cmake-developers] [PATCH] Imported targets for FindGTest

Brad King brad.king at kitware.com
Fri Dec 11 10:02:55 EST 2015


On 12/10/2015 07:22 PM, rleigh at codelibre.net wrote:
>> - Add unit test to test imported targets and existing variables
> 
> I should mention that to run the unit test, you must define the GTEST_ROOT
> environment variable to point to the gtest build, due to gtest being
> annoyingly crippled to be uninstallable for dubious reasons.  You can pass
> -DGTEST_ROOT, but since the cmake build can't pass it through without
> further changes, the environment variable is the only way to run the test
> with the existing patches.

Thanks.  I've set this up on a nightly dashboard testing client and will
look at it again once that is running.

-Brad



More information about the cmake-developers mailing list