Merge remote-tracking branch 'origin/release-v4.6.1'
[WRF.git] / cmake / template / arch_config.cmake
blob0a655a4e32833a13438c0f2fed12375d8c9bacd7
1 # https://cmake.org/cmake/help/latest/module/FindMPI.html#variables-for-locating-mpi
2 set( MPI_Fortran_COMPILER "{DM_FC}" )
3 set( MPI_C_COMPILER       "{DM_CC}" )
5 # https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER.html
6 set( CMAKE_Fortran_COMPILER "{SFC}" )
7 set( CMAKE_C_COMPILER       "{SCC}" )
9 # Our own addition
10 set( CMAKE_C_PREPROCESSOR       "{CPP}" )
11 set( CMAKE_C_PREPROCESSOR_FLAGS  {CPP_FLAGS} )
13 # https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_FLAGS_INIT.html
14 set( CMAKE_Fortran_FLAGS_INIT    "{SFC_FLAGS} {FCBASEOPTS} {BYTESWAPIO}" )
15 set( CMAKE_C_FLAGS_INIT          "{SCC_FLAGS} {CFLAGS_LOCAL}" )
17 # https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_FLAGS_CONFIG_INIT.html
18 set( CMAKE_Fortran_FLAGS_Debug_INIT    "{FCDEBUG}" )
19 set( CMAKE_Fortran_FLAGS_Release_INIT  "" )
20 set( CMAKE_C_FLAGS_Debug_INIT    "" )
21 set( CMAKE_C_FLAGS_Release_INIT  "" )
23 # Project specifics now
24 set( WRF_MPI_Fortran_FLAGS  "{DM_FC_FLAGS}"   )
25 set( WRF_MPI_C_FLAGS        "{DM_CC_FLAGS}"   )
26 set( WRF_ARCH_LOCAL         "{ARCH_LOCAL}"    )
27 set( WRF_M4_FLAGS           "{M4_FLAGS}"      )
28 set( WRF_FCOPTIM            "{FCOPTIM}"       )
29 set( WRF_FCNOOPT            "{FCNOOPT}"       )
30 set( WRF_LINK_FLAGS         "{LDFLAGS_LOCAL}" )