ecmwf-ifs / field_api

Apache License 2.0
3 stars 8 forks source link

Various cmake fixes #36

Closed awnawab closed 4 months ago

awnawab commented 5 months ago

This PR contributes three small CMake fixes:

  1. If enabled, cuda is now linked publicly, just like OpenACC. This has the advantage that an externally built/installed FIELD_API with openacc and/or cuda can be linked to shared library targets even if they do not do any offload.
  2. A cmake import configuration is added, which exports vital information about the FIELD_API build configuration to any cmake project that issues find_project( field_api ... ).
  3. FIELD_API can now also optionally use the fypp installation included in fckit's virtual python environment.