-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove redundant FindGTest.cmake, Fix gtest include dirs. #3533
Conversation
@trivialfis The CMake test is failing in Travis. You can reproduce this by running TASK=cmake_test tests/travis/run_test.sh |
9a7dbc7
to
c9eff29
Compare
@hcho3 Thanks, I'm trying to install GTest in travis. Now that I know I can reproduce the tests in this way, I will configure guix container for testing. |
a757860
to
bdc230b
Compare
Hi, @hcho3 can you give me some insight about why the librt is not explicitly linked when building with gcc-4.8 and glibc-2.2.5 but work before this patch? I am confused which part of this patch triggered the linking failure of dmlc-core on jenkins. Travis built fine though. Thanks.
|
bdc230b
to
72d428a
Compare
During removal of FindGTest.cmake, also * Fix gtest include dirs. * Remove some blanks and use PWD for gtest dir.
72d428a
to
bf060c2
Compare
Codecov Report
@@ Coverage Diff @@
## master #3533 +/- ##
============================================
- Coverage 45.77% 45.64% -0.13%
Complexity 188 188
============================================
Files 166 166
Lines 13200 13233 +33
Branches 428 445 +17
============================================
- Hits 6042 6040 -2
- Misses 6954 6989 +35
Partials 204 204
Continue to review full report at Codecov.
|
@trivialfis How did you fix the error? |
@hcho3 Hence the simple get away is not to let dmlc find GTest just like before. If you want sanity check for dmlc-core, it's preferable to do it in dmlc project. |
LGTM |
@hcho3 Sorry for bothering you on this. Can you give me some insight about Jenkins? It seems this PR might broke Jenkins. But I don't understand its behaviour. While on 9.2, the GTest line becomes: It seems on 8.0, the cmake build is still using old FindGTest, which built successfully. Is there any cache mechanism I should be aware of? |
@trivialfis Just found out that Docker has caching mechanism. Clearing it now. |
Indeed, EDIT. I also had to manually delete the old workspace, with had the old |
@hcho3 Thanks for helping out. |
@trivialfis No problem. Thank you for your contribution. |
Continue #3469
Gtest is included in CMake before CMake 3.2. We can safely remove it now.