Commit 4e309e67 by Wei Chen Committed by Tianqi Chen

Allow override gtest library search path (#1867)

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