FTorch icon indicating copy to clipboard operation
FTorch copied to clipboard

Require ftorch when coupling

Open jatkinson1000 opened this issue 1 year ago • 2 comments

Closes #133

It came up in #124 that some linking could pass undetected for the examples as CMake does not currently 'REQUIRE' FTorch.

This PR changes that for the examples (which are then pulled into the tests) and in the online coupling guidance.

jatkinson1000 avatar Jun 05 '24 10:06 jatkinson1000

Hm so this implies we need to build the tests separately from FTorch? Doable but means we have two build steps.

Either that or perhaps we can use POST_BUILD. I wonder if this is relevant? https://stackoverflow.com/questions/50913377/cmake-add-custom-command-post-build-depends-option-is-ignored

joewallwork avatar Jun 17 '24 15:06 joewallwork

My feelings are that this is not a priority, so can perhaps be put on a backburner for now - I had hoped it would be a 1-line change, but that does not seem the case. 😅

That said, don't let it stop you looking if you are interested!

I'm softening on it being a necessity to build tests as a one-shot with CMake - maybe having a separate "build tests" step wouldn't be an issue as one still has to follow a separate "run tests" step? I still think separating tests from examples (even if they use the same code) is sensible, however.

jatkinson1000 avatar Jun 18 '24 07:06 jatkinson1000

This has not been raised as an issue since it first was, and would require sufficient CMake gymnastics (see above) that we do not feel it is worth implementing at this point in time

I can be revisited in future, but for now we have agreed to close as not planned.

jatkinson1000 avatar Feb 26 '25 16:02 jatkinson1000