Fix GTest linking - #304
Conversation
|
I am also noticing that we build twice the tests:
I find it very unfortunate because:
I would suggest to only compile once and run twice |
|
You can also just get rid of either the serial or the parallel version of the same test. |
Then let's keep a single build, it will be serial or parallel depending on how Kokkos is compiled. @EmilyBourne ok for you too ? |
I did it this way because the old version had lots of tests that were identical apart from the number of threads (with 1 or 16). I just tried to reproduce the existing tests. I am ok to only have 1 build as long as it doesn't cause problems for testing/debugging |
From https://cmake.org/cmake/help/latest/module/FindGTest.html#imported-targets:
We already provide the
mainfunction in the filegmgpolar_tests.cpp.Merge Request - GuideLine Checklist
Guideline to check code before resolve WIP and approval, respectively.
As many checkboxes as possible should be ticked.
Checks by code author:
Always to be checked:
If functions were changed or functionality was added:
If new functionality was added:
If new third party software is used:
If new mathematical methods or epidemiological terms are used:
Checks by code reviewer(s):