elif target_os == 'linux':
if os.path.exists(gtest_dir):
- # Run configure on gtest
- print 'Configuring google unit test'
- env.Configure(gtest_dir, './configure')
+ if not os.path.exists(gtest_dir + "/lib"):
+ # Run configure on gtest
+ print 'Configuring google unit test'
+ env.Configure(gtest_dir, './configure')
- # Run make on gtest
- print 'Making google unit test'
- env.Configure(gtest_dir, 'make')
+ # Run make on gtest
+ print 'Making google unit test'
+ env.Configure(gtest_dir, 'make')