Skip to content
Snippets Groups Projects
Commit 4e309e67 authored by Wei Chen's avatar Wei Chen Committed by Tianqi Chen
Browse files

Allow override gtest library search path (#1867)

parent b68d9dc0
No related branches found
No related tags found
No related merge requests found
......@@ -213,7 +213,7 @@ target_include_directories(
# Tests
set(TEST_EXECS "")
file(GLOB TEST_SRCS tests/cpp/*.cc)
find_library(GTEST_LIB gtest)
find_library(GTEST_LIB gtest "$ENV{GTEST_LIB}")
if(GTEST_LIB)
foreach(__srcpath ${TEST_SRCS})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment