From 38e4551cf19f08428c14887fab529641ae953dd5 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 27 Nov 2016 13:44:43 +0100 Subject: [PATCH] Ensure that gtest is built before building run_tests --- src/tests/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 9142108a1..ae6920f6f 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -192,6 +192,9 @@ if(ENABLE_UNIT_TESTING) ${VOLK_GNSSSDR_LIBRARIES} ${GNSS_SDR_TEST_OPTIONAL_LIBS} ) + if(NOT ${GTEST_DIR_LOCAL}) + add_dependencies(run_tests gtest-${gtest_RELEASE}) + endif(NOT ${GTEST_DIR_LOCAL}) endif(ENABLE_UNIT_TESTING) #########################################################