diff options
author | Brad King <brad.king@kitware.com> | 2022-07-22 13:55:05 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-07-22 13:55:13 (GMT) |
commit | cf27fb7f48704bb68897a308e0c60bd6c93204e9 (patch) | |
tree | 1f0437a4d2a7ca2968b717ca14b8257d846b5092 /Modules | |
parent | b6f8b4459c52e925b01a55a815c86cca473b1ef7 (diff) | |
parent | 9a6f74ffa284762f5489392113f55ad6357fa037 (diff) | |
download | CMake-cf27fb7f48704bb68897a308e0c60bd6c93204e9.zip CMake-cf27fb7f48704bb68897a308e0c60bd6c93204e9.tar.gz CMake-cf27fb7f48704bb68897a308e0c60bd6c93204e9.tar.bz2 |
Merge topic 'FindOpenACC_set_found_variable'
9a6f74ffa2 FindOpenACC: Set OpenACC_FOUND when OpenACC is enabled for a language
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7437
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindOpenACC.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/FindOpenACC.cmake b/Modules/FindOpenACC.cmake index cf58f3b..71bd84f 100644 --- a/Modules/FindOpenACC.cmake +++ b/Modules/FindOpenACC.cmake @@ -27,6 +27,13 @@ The module provides :prop_tgt:`IMPORTED` targets: Variables ^^^^^^^^^ +The module defines the following variables: + +``OpenACC_FOUND`` + .. versionadded:: 3.25 + + Variable indicating that OpenACC flags for at least one languages have been found. + This module will set the following variables per language in your project, where ``<lang>`` is one of C, CXX, or Fortran: @@ -270,6 +277,9 @@ foreach (LANG IN ITEMS C CXX Fortran) REQUIRED_VARS OpenACC_${LANG}_FLAGS VERSION_VAR OpenACC_${LANG}_VERSION ) + if(OpenACC_${LANG}_FOUND) + set(OpenACC_FOUND TRUE) + endif() endif() endforeach() |