summaryrefslogtreecommitdiff
path: root/Modules/FindOpenMP.cmake
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2014-11-20 14:54:11 +0100
committerNils Gladitz <nilsgladitz@gmail.com>2014-11-20 14:54:11 +0100
commit7d633ebfa016e942261c94c10ca86ef46132ab5e (patch)
treea174386d49079399edf6640fde97feb4400fde6d /Modules/FindOpenMP.cmake
parent598a316154922f27f987d0f7a78b28ab78a85be6 (diff)
downloadcmake-7d633ebfa016e942261c94c10ca86ef46132ab5e.tar.gz
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.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake
index 801b4f8144..a102c66e39 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
"
)