diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2014-11-20 13:54:11 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2014-11-20 13:54:11 (GMT) |
commit | 7d633ebfa016e942261c94c10ca86ef46132ab5e (patch) | |
tree | a174386d49079399edf6640fde97feb4400fde6d /Modules/FindOpenMP.cmake | |
parent | 598a316154922f27f987d0f7a78b28ab78a85be6 (diff) | |
download | CMake-7d633ebfa016e942261c94c10ca86ef46132ab5e.zip CMake-7d633ebfa016e942261c94c10ca86ef46132ab5e.tar.gz CMake-7d633ebfa016e942261c94c10ca86ef46132ab5e.tar.bz2 |
FindOpenMP: Use fixed form Fortran test program
This prevents the test program from failing when build as Fortran 77.
Suggested-by: Alin Marin Elena <alinm.elena@gmail.com>
Diffstat (limited to 'Modules/FindOpenMP.cmake')
-rw-r--r-- | Modules/FindOpenMP.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake index 801b4f8..a102c66 100644 --- a/Modules/FindOpenMP.cmake +++ b/Modules/FindOpenMP.cmake @@ -111,11 +111,11 @@ int main() { # same in Fortran set(OpenMP_Fortran_TEST_SOURCE " -program test -use omp_lib -integer :: n -n = omp_get_num_threads() -end program test + program test + use omp_lib + integer :: n + n = omp_get_num_threads() + end program test " ) |