1 # WRF configuration checks
4 RESULT_VAR Fortran_2003_IEEE
5 SOURCE ${PROJECT_SOURCE_DIR}/tools/fortran_2003_ieee_test.F
7 MESSAGE "Some IEEE Fortran 2003 features missing, removing usage of these features"
12 RESULT_VAR Fortran_2003_ISO_C
13 SOURCE ${PROJECT_SOURCE_DIR}/tools/fortran_2003_iso_c_test.F
15 MESSAGE "Some ISO_C Fortran 2003 features missing, removing usage ISO_C and stubbing code dependent on it"
20 RESULT_VAR Fortran_2003_FLUSH
21 SOURCE ${PROJECT_SOURCE_DIR}/tools/fortran_2003_flush_test.F
23 MESSAGE "Standard FLUSH routine Fortran 2003 features missing, checking for alternate Fortran_2003_FFLUSH"
26 if ( NOT ${Fortran_2003_FLUSH} )
29 RESULT_VAR Fortran_2003_FFLUSH
30 SOURCE ${PROJECT_SOURCE_DIR}/tools/fortran_2003_fflush_test.F
32 MESSAGE "Standard FFLUSH routine Fortran 2003 features missing, no alternate to FLUSH found, feature stubbed out"
38 RESULT_VAR Fortran_2003_GAMMA
39 SOURCE ${PROJECT_SOURCE_DIR}/tools/fortran_2008_gamma_test.F
41 MESSAGE "Some Fortran 2003 features missing, removing usage gamma function intrinsic and stubbing code dependent on it"
50 SOURCE ${PROJECT_SOURCE_DIR}/tools/fseek_test.c
52 ADDITIONAL_DEFINITIONS -DTEST_FSEEKO64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -DFILE_TO_TEST="${PROJECT_SOURCE_DIR}/CMakeLists.txt"
53 MESSAGE "fseeko64 not supported, checking alternate fseeko"
56 if ( NOT "${FSEEKO64}" )
61 SOURCE ${PROJECT_SOURCE_DIR}/tools/fseek_test.c
63 ADDITIONAL_DEFINITIONS -DTEST_FSEEKO -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -DFILE_TO_TEST="${PROJECT_SOURCE_DIR}/CMakeLists.txt"
64 MESSAGE "fseeko not supported, compiling with fseek (caution with large files)"
68 # Unsure if this is even necessary. Defines littered throughout configure.defaults
73 # RESULT_VAR MPI2_SUPPORT
74 # SOURCE ${PROJECT_SOURCE_DIR}/tools/mpi2_test.c
76 # MESSAGE "MPI_Comm_f2c() and MPI_Comm_c2f() not supported"
82 # RESULT_VAR MPI2_THREAD_SUPPORT
83 # SOURCE ${PROJECT_SOURCE_DIR}/tools/mpi2_thread_test.c
85 # MESSAGE "MPI_Init_thread() not supported"