summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenACC.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Modules: Use new SOURCES_FROM_* try_compile (2/2)Matthew Woehlke2022-09-271-18/+19
| | | | | | | | | | | | | Modify some additional modules that ship with CMake to use the new SOURCES_FROM_* arguments to try_compile / try_run as added by commits cb14ae2b87 (try_compile: Add SOURCE_FROM_{ARG,VAR}, 2022-09-21) and 611d801790 (try_compile: Add SOURCE_FROM_FILE, 2022-09-22). This covers modules that need to read and alter a template source file, which were not addressed in the previous commit. Note that FindOpenACC.cmake does not actually need configure_file functionality; it appears to have inherited the (gratuitous) use thereof from FindOpenMP.cmake, with which its code bears significant similarity.
* Modules: Use new keyword-dispatched try_compile signatureMatthew Woehlke2022-09-141-2/+2
| | | | | | | | | | | Modify most of the modules that ship with CMake to use the new try_compile / try_run signatures added by commit aa9220d3a0 (try_compile: Add keyword-dispatched signature, 2022-09-02). This improves debugging by each invocation using its own directory so that the results of multiple invocations can be retained. This does not cover any invocations which provide an entire project, as that flavor of try_compile has not yet been updated.
* FindOpenACC: Set OpenACC_FOUND when OpenACC is enabled for a languageRobert Maynard2022-07-131-0/+10
|
* FindOpenACC: Add support for NVHPC compilerTin Huynh2021-01-271-1/+4
|
* Help: Add `.. versionadded` directives to module docsNikita Nemkin2020-12-021-5/+12
| | | | Issue: #19715
* Help: Add Sphinx 'versionadded' directives to each top-level documentKitware Robot2020-07-061-0/+2
| | | | | | | Run the `Utilities/Sphinx/update_versions.py` script to add initial markup to every top-level document and find module. Issue: #19715
* FPHSA: acknowledge the name mismatches in CMake-owned modulesBen Boeckel2020-01-141-0/+1
|
* FindOpenACC: Provide import targets and OpenACC_<lang>_OPTIONS variableRobert Maynard2019-08-191-0/+28
| | | | | | Previously the FindOpenACC module had issues where the contents of OpenACC_<lang>_FLAGS could not be used with target_compile_options when it contained multiple compiler flags.
* FindOpenACC: Provide a Fortran snippet that compiles with gfortranRobert Maynard2019-08-091-3/+1
| | | | | | | | | | | | The original Fortran snippet would fail to compile with the error message of: ``` return 0; 1 Error: Alternate RETURN statement at (1) is only allowed within a SUBROUTINE ``` We solve this by removing the early termination logic.
* Find{OpenMP,OpenACC}: Fix detection with -Werror=return-typeChristian Pfeiffer2017-10-241-2/+7
| | | | | | Explicitly return a value from `main` in our test sources. Fixes: #17391
* FindOpenACC: Add module to detect compiler support for OpenACCTin Huynh2017-09-221-0/+252