From 58cf73f4a86ee0e204cf3cce991077a446b29cbd Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Fri, 10 Mar 2017 18:29:56 +0100 Subject: [PATCH] gtest: Test presence of source on existing file configure is not in upstream's repo because, it's intended to be generated from configure.ac. So to avoid ambiguity, we test if CMake file is present instead. Bug: https://jira.iotivity.org/browse/IOT-1745 Change-Id: Ia2e7c8c4d0c827b300b9345c9cb7811a193cfd9e Signed-off-by: Philippe Coval Reviewed-on: https://gerrit.iotivity.org/gerrit/17855 Tested-by: jenkins-iotivity Reviewed-by: Mats Wichmann Reviewed-by: Ashok Babu Channa --- extlibs/gtest/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extlibs/gtest/SConscript b/extlibs/gtest/SConscript index 4b4d384..de39e93 100644 --- a/extlibs/gtest/SConscript +++ b/extlibs/gtest/SConscript @@ -23,7 +23,7 @@ gtest_url = 'https://github.com/google/googletest/archive/release-1.7.0.zip' if target_os in targets_need_gtest: print '*** Checking for installation of google unit test 1.7.0 ***' - if not os.path.exists(os.path.join(gtest_dir, 'configure')): + if not os.path.exists(os.path.join(gtest_dir, 'CMakeLists.txt')): # If the gtest zip file is not already present, download it if not os.path.exists(gtest_zip_file): gtest_zip = gtest_env.Download(gtest_zip_file, gtest_url) -- 2.7.4