summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-07-22 13:55:05 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-07-22 13:55:13 (GMT)
commitcf27fb7f48704bb68897a308e0c60bd6c93204e9 (patch)
tree1f0437a4d2a7ca2968b717ca14b8257d846b5092 /Modules
parentb6f8b4459c52e925b01a55a815c86cca473b1ef7 (diff)
parent9a6f74ffa284762f5489392113f55ad6357fa037 (diff)
downloadCMake-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.cmake10
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()