mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-14 19:25:47 +00:00
Fixing detection of GTEST_DIR variable when defined with -DGTEST_DIR=...
This commit is contained in:
parent
31b4738d39
commit
36a587762b
@ -198,7 +198,6 @@ endif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
enable_testing()
|
||||
if(EXISTS $ENV{GTEST_DIR})
|
||||
set(GTEST_DIR $ENV{GTEST_DIR})
|
||||
message("++++++++++++++++++HEllo")
|
||||
endif(EXISTS $ENV{GTEST_DIR})
|
||||
if(GTEST_DIR)
|
||||
message(STATUS "GTEST root folder at ${GTEST_DIR}")
|
||||
|
@ -16,7 +16,14 @@
|
||||
# along with GNSS-SDR. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
|
||||
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)
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user