summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2014-11-20 13:54:11 (GMT)
committerNils Gladitz <nilsgladitz@gmail.com>2014-11-20 13:54:11 (GMT)
commit7d633ebfa016e942261c94c10ca86ef46132ab5e (patch)
treea174386d49079399edf6640fde97feb4400fde6d /Modules
parent598a316154922f27f987d0f7a78b28ab78a85be6 (diff)
downloadCMake-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')
-rw-r--r--Modules/FindOpenMP.cmake10
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
"
)