FindOpenACC: Provide a Fortran snippet that compiles with gfortran

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.
This commit is contained in:
Robert Maynard
2019-08-09 14:49:34 -04:00
parent 38a5b0203f
commit 9460501ad7
+1 -3
View File
@@ -60,9 +60,7 @@ int main(){
set(OpenACC_Fortran_TEST_SOURCE
"
program test
#ifdef _OPENACC
return 0;
#else
#ifndef _OPENACC
breaks_on_purpose
#endif
endprogram test