diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-09-24 19:31:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-08 12:30:59 (GMT) |
commit | da2622ff366e6089a98109c68ececac58d598b66 (patch) | |
tree | 8205c6455c1c996ccb39d6270b8de385a92e78bb /Modules/CheckSourceCompiles.cmake | |
parent | c61f820a7fb1b191fe5591805f7e53fc52424f93 (diff) | |
download | CMake-da2622ff366e6089a98109c68ececac58d598b66.zip CMake-da2622ff366e6089a98109c68ececac58d598b66.tar.gz CMake-da2622ff366e6089a98109c68ececac58d598b66.tar.bz2 |
CUDA: Add Support to SourceCompiles|Runs and CheckCompilerFlags
Diffstat (limited to 'Modules/CheckSourceCompiles.cmake')
-rw-r--r-- | Modules/CheckSourceCompiles.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CheckSourceCompiles.cmake b/Modules/CheckSourceCompiles.cmake index 70a733d..08fc153 100644 --- a/Modules/CheckSourceCompiles.cmake +++ b/Modules/CheckSourceCompiles.cmake @@ -89,6 +89,9 @@ function(CHECK_SOURCE_COMPILES _lang _source _var) elseif(_lang STREQUAL CXX) set(_lang_textual "C++") set(_lang_ext "cxx") + elseif(_lang STREQUAL CUDA) + set(_lang_textual "CUDA") + set(_lang_ext "cu") elseif(_lang STREQUAL Fortran) set(_lang_textual "Fortran") set(_lang_ext "F") |