From 7d633ebfa016e942261c94c10ca86ef46132ab5e Mon Sep 17 00:00:00 2001 From: Nils Gladitz Date: Thu, 20 Nov 2014 14:54:11 +0100 Subject: FindOpenMP: Use fixed form Fortran test program This prevents the test program from failing when build as Fortran 77. Suggested-by: Alin Marin Elena --- Modules/FindOpenMP.cmake | 10 +++++----- 1 file 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 " ) -- cgit v0.12