Don't enter test subdirectories if BUILD_TESTING=OFF
ClosedPublic

Authored by asturmlechner on Aug 15 2017, 12:37 PM.

Diff Detail

Repository
R8 Calligra
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
asturmlechner created this revision.Aug 15 2017, 12:37 PM
Restricted Application added a project: Calligra: 3.0. · View Herald TranscriptAug 15 2017, 12:37 PM

Does this make it possible to remove if(BUILD_TESTING) used in */tests/CMakeLists.txt?
Or is BUILD_TESTING not respected at the moment?

Does this make it possible to remove if(BUILD_TESTING) used in */tests/CMakeLists.txt?

Yes it would, but I did not find existing use of BUILD_TESTING in the tests subdirs themselves.

Ok, looks like a nice speedup for non-testing builds.

Ok, looks like a nice speedup for non-testing builds.

Is that a ship-it? ;)

Yes. I was a but reluctant to say ship it because i'm not a core contributor.

danders accepted this revision.Aug 21 2017, 7:43 AM
This revision is now accepted and ready to land.Aug 21 2017, 7:43 AM
This revision was automatically updated to reflect the committed changes.