CUDA: CheckLinkerFlag now supports CUDA

This commit is contained in:
Robert Maynard
2020-09-14 10:28:17 -04:00
committed by Brad King
parent da2622ff36
commit 5c66ac31e6
5 changed files with 15 additions and 1 deletions
+2
View File
@@ -66,6 +66,8 @@ function(CHECK_LINKER_FLAG _lang _flag _var)
set (_source "int main() { return 0; }")
elseif (_lang STREQUAL "Fortran")
set (_source " program test\n stop\n end program")
elseif (_lang MATCHES "CUDA")
set (_source "__host__ int main() { return 0; }")
elseif (_lang MATCHES "^(OBJC|OBJCXX)$")
set (_source "#ifndef __OBJC__\n# error \"Not an Objective-C++ compiler\"\n#endif\nint main(void) { return 0; }")
else()