File tree Expand file tree Collapse file tree 5 files changed +21
-8
lines changed
Expand file tree Collapse file tree 5 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 1- set (FTestObj
1+ set (FTestObj
22 blacstest.f btprim.f tools.f)
33
4+ if ("${CMAKE_Fortran_COMPILER_ID} " STREQUAL "GNU" AND CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
5+ set_source_files_properties (blacstest.f PROPERTIES COMPILE_FLAGS "-std=legacy" )
6+ endif ()
7+
48add_executable (xFbtest ${FTestObj} )
59target_link_libraries (xFbtest scalapack)
610
7- set (CTestObj
11+ set (CTestObj
812 Cbt.c)
913
1014set_property (
@@ -46,4 +50,4 @@ add_test(xFbtest
4650 -DRUNTIMEDIR=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
4751 -DSOURCEDIR=${CMAKE_CURRENT_SOURCE_DIR}
4852 -P ${CMAKE_CURRENT_SOURCE_DIR} /runtest.cmake
49- )
53+ )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ set (zpbtcom pzblastst.f dlamch.f ${pbtcom})
1010
1111set_property (
1212 SOURCE ${PblasErrorHandler}
13- APPEND PROPERTY COMPILE_DEFINITIONS TestingPblas
13+ APPEND PROPERTY COMPILE_DEFINITIONS TestingPblas
1414 )
1515
1616set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${SCALAPACK_BINARY_DIR} /PBLAS/TESTING)
@@ -74,5 +74,6 @@ add_test(dpb3tst ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 4 ./dpb3tst)
7474add_test (cpb3tst ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 4 ./cpb3tst)
7575add_test (zpb3tst ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 4 ./zpb3tst)
7676
77-
78-
77+ if ("${CMAKE_Fortran_COMPILER_ID} " STREQUAL "GNU" AND CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
78+ set ( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -std=legacy" ) # local to this directory
79+ endif ()
Original file line number Diff line number Diff line change @@ -74,5 +74,6 @@ add_test(dpb3tim ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 4 ./dpb3tim)
7474add_test (cpb3tim ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 4 ./cpb3tim)
7575add_test (zpb3tim ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 4 ./zpb3tim)
7676
77-
78-
77+ if ("${CMAKE_Fortran_COMPILER_ID} " STREQUAL "GNU" AND CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
78+ set ( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -std=legacy" ) # local to this directory
79+ endif ()
Original file line number Diff line number Diff line change @@ -97,3 +97,6 @@ target_link_libraries(xzheevr scalapack ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
9797target_link_libraries (xshseqr scalapack ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} )
9898target_link_libraries (xdhseqr scalapack ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} )
9999
100+ if ("${CMAKE_Fortran_COMPILER_ID} " STREQUAL "GNU" AND CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
101+ set ( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -std=legacy" ) # local to this directory
102+ endif ()
Original file line number Diff line number Diff line change @@ -110,3 +110,7 @@ target_link_libraries(xsls scalapack ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
110110target_link_libraries (xdls scalapack ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} )
111111target_link_libraries (xcls scalapack ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} )
112112target_link_libraries (xzls scalapack ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} )
113+
114+ if ("${CMAKE_Fortran_COMPILER_ID} " STREQUAL "GNU" AND CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
115+ set ( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -std=legacy" ) # local to this directory
116+ endif ()
You can’t perform that action at this time.
0 commit comments