Closed SSoelvsten closed 2 years ago
Why not just do do the following in the use software?
option(COMPILE_TEST OFF)
include_directories(tpie)
Valid counter argument, I didn't think about that. xD
Question though then is, whether it should have a less generic name? Or is it custom to have all tests in a COMPILE_TEST
variable that turns on or off all subprojects too?
One could argue both ways: when you just run
make
on a project with TPIE as its dependency should tests be compiled and run for TPIE too or should you trust your TPIE dependency just to work? I'd advocate for the latter (primarily to not having to wait so long).Of course, in most cases I specify what target I want to create, but when I want to run
make && make install
on my project, I would not want to wait for all TPIE's unit tests to compile.