mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 12:10: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:
parent
36a587762b
commit
027fcaa5cc
@ -20,14 +20,13 @@
|
||||
if(EXISTS $ENV{GTEST_DIR})
|
||||
set(GTEST_DIR_LOCAL $ENV{GTEST_DIR})
|
||||
endif(EXISTS $ENV{GTEST_DIR})
|
||||
set(GTEST_DIR_LOCAL "$ENV{GTEST_DIR}")
|
||||
if(GTEST_DIR)
|
||||
set(GTEST_DIR_LOCAL ${GTEST_DIR})
|
||||
endif(GTEST_DIR)
|
||||
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()
|
||||
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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user