You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Put common compiler compatibility check in a variable to be written out, rather than
158
-
# duplicating it across the build and install package-config files
159
-
set ( COMPILER_CONSISTENCY_CHECK
160
-
"# Check that the correct compiler is in use. Mod files and object files/archives
161
-
# are NOT compatible across different Fortran compilers when modules are present
162
-
set ( ${PACKAGE_NAME}_Fortran_COMPILER_ID ${CMAKE_Fortran_COMPILER_ID} )
163
-
set ( ${PACKAGE_NAME}_COMPATIBLE_COMPILER TRUE )
164
-
if ( NOT (\"${CMAKE_Fortran_COMPILER_ID}\" MATCHES \"\${CMAKE_Fortran_COMPILER_ID}\") )
165
-
message ( SEND_ERROR \"Incompatible Fortran compilers detected! ${PACKAGE_NAME} was compiled with the ${CMAKE_Fortran_COMPILER_ID} Fortran compiler, but the current project is trying to use the \${CMAKE_Fortran_COMPILER_ID} Fortran compiler! In general, Fortran modules and libraries can only link against other projects built using the same compiler.\" )
166
-
set ( ${PACKAGE_NAME}_COMPATIBLE_COMPILER FALSE )
167
-
endif ( NOT (\"${CMAKE_Fortran_COMPILER_ID}\" MATCHES \"\${CMAKE_Fortran_COMPILER_ID}\") )" )
# Put common compiler compatibility check in a variable to be written out, rather than
2
+
# duplicating it across the build and install package-config files
3
+
4
+
set ( COMPILER_CONSISTENCY_CHECK
5
+
"# Check that the correct compiler is in use. Mod files and object files/archives
6
+
# are NOT compatible across different Fortran compilers when modules are present
7
+
set ( ${PACKAGE_NAME}_Fortran_COMPILER_ID ${CMAKE_Fortran_COMPILER_ID} )
8
+
set ( ${PACKAGE_NAME}_COMPATIBLE_COMPILER TRUE )
9
+
if ( NOT (\"${CMAKE_Fortran_COMPILER_ID}\" MATCHES \"\${CMAKE_Fortran_COMPILER_ID}\") )
10
+
message ( SEND_ERROR \"Incompatible Fortran compilers detected! ${PACKAGE_NAME} was compiled with the ${CMAKE_Fortran_COMPILER_ID} Fortran compiler, but the current project is trying to use the \${CMAKE_Fortran_COMPILER_ID} Fortran compiler! In general, Fortran modules and libraries can only link against other projects built using the same compiler.\" )
11
+
set ( ${PACKAGE_NAME}_COMPATIBLE_COMPILER FALSE )
12
+
endif ( NOT (\"${CMAKE_Fortran_COMPILER_ID}\" MATCHES \"\${CMAKE_Fortran_COMPILER_ID}\") )" )
0 commit comments