FindOpenACC does not set OpenACC_FOUND variable
The FindOpenACC module only sets OpenACC_<lang>_FOUND
variables but not OpenACC_FOUND
. Subsequently, this means a find_package(OpenACC)
never results in a successful feature discovery, registering OpenACC always in the PACKAGES_NOT_FOUND
global property. (Evident e.g. by a call to feature_summary
).
The following should be fixed in FindOpenACC
to make it behave similar to the FindOpenMP
package:
- Add support for
COMPONENTS <lang>
specifier to further qualify which OpenACC language support is required - Set
OpenACC_FOUND
if all requested language components have been found.