1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 04:00:34 +00:00

Do not force cache of GTEST_DIR_LOCAL so the user can chose either

define it or not from cmake commandline
This commit is contained in:
Carles Fernandez 2014-05-28 22:12:29 +02:00
parent 36a587762b
commit 027fcaa5cc

View File

@ -20,14 +20,13 @@
if(EXISTS $ENV{GTEST_DIR}) if(EXISTS $ENV{GTEST_DIR})
set(GTEST_DIR_LOCAL $ENV{GTEST_DIR}) set(GTEST_DIR_LOCAL $ENV{GTEST_DIR})
endif(EXISTS $ENV{GTEST_DIR}) endif(EXISTS $ENV{GTEST_DIR})
set(GTEST_DIR_LOCAL "$ENV{GTEST_DIR}")
if(GTEST_DIR) if(GTEST_DIR)
set(GTEST_DIR_LOCAL ${GTEST_DIR}) set(GTEST_DIR_LOCAL ${GTEST_DIR})
endif(GTEST_DIR) endif(GTEST_DIR)
if(NOT GTEST_DIR_LOCAL) if(NOT GTEST_DIR_LOCAL)
set(GTEST_DIR_LOCAL false CACHE STRING "Gtest downloaded and built automatically" FORCE) set(GTEST_DIR_LOCAL false CACHE STRING "Gtest downloaded and built automatically")
else() else()
set(GTEST_DIR_LOCAL true CACHE STRING "Gtest already downloaded" FORCE) set(GTEST_DIR_LOCAL true CACHE STRING "Gtest already downloaded")
endif(NOT GTEST_DIR_LOCAL) endif(NOT GTEST_DIR_LOCAL)