|
1 | 1 | set(CMAKE_CONFIGURATION_TYPES "Release;RelWithDebInfo;Debug" CACHE STRING "Build type selections" FORCE) |
2 | 2 |
|
| 3 | + |
| 4 | +include(CheckCSourceCompiles) |
| 5 | +include(CheckCSourceRuns) |
| 6 | +include(CheckFortranSourceCompiles) |
| 7 | + |
| 8 | +include(${CMAKE_CURRENT_LIST_DIR}/f08block.cmake) |
| 9 | +include(${CMAKE_CURRENT_LIST_DIR}/f08contig.cmake) |
| 10 | +include(${CMAKE_CURRENT_LIST_DIR}/f18errorstop.cmake) |
| 11 | +include(${CMAKE_CURRENT_LIST_DIR}/f18random.cmake) |
| 12 | +include(${CMAKE_CURRENT_LIST_DIR}/f18assumed_rank.cmake) |
| 13 | +include(${CMAKE_CURRENT_LIST_DIR}/f08kind.cmake) |
| 14 | +include(${CMAKE_CURRENT_LIST_DIR}/f18prop.cmake) |
| 15 | +include(${CMAKE_CURRENT_LIST_DIR}/f08command.cmake) |
| 16 | +include(${CMAKE_CURRENT_LIST_DIR}/f03ieee.cmake) |
| 17 | + |
| 18 | +# compiler feature checks BEFORE setting flags to avoid intermittant failures in general |
| 19 | + |
3 | 20 | if(CMAKE_Fortran_COMPILER_ID STREQUAL Intel) |
4 | 21 | if(WIN32) |
5 | 22 | add_compile_options(/arch:native) |
@@ -29,17 +46,3 @@ elseif(CMAKE_Fortran_COMPILER_ID STREQUAL NAG) |
29 | 46 | # https://www.nag.co.uk/nagware/np/r70_doc/manual/compiler_2_4.html#OPTIONS |
30 | 47 | string(APPEND CMAKE_Fortran_FLAGS " -f2018 -C -colour -gline -nan -info -u") |
31 | 48 | endif() |
32 | | - |
33 | | -include(CheckCSourceCompiles) |
34 | | -include(CheckCSourceRuns) |
35 | | -include(CheckFortranSourceCompiles) |
36 | | - |
37 | | -include(${CMAKE_CURRENT_LIST_DIR}/f08block.cmake) |
38 | | -include(${CMAKE_CURRENT_LIST_DIR}/f08contig.cmake) |
39 | | -include(${CMAKE_CURRENT_LIST_DIR}/f18errorstop.cmake) |
40 | | -include(${CMAKE_CURRENT_LIST_DIR}/f18random.cmake) |
41 | | -include(${CMAKE_CURRENT_LIST_DIR}/f18assumed_rank.cmake) |
42 | | -include(${CMAKE_CURRENT_LIST_DIR}/f08kind.cmake) |
43 | | -include(${CMAKE_CURRENT_LIST_DIR}/f18prop.cmake) |
44 | | -include(${CMAKE_CURRENT_LIST_DIR}/f08command.cmake) |
45 | | -include(${CMAKE_CURRENT_LIST_DIR}/f03ieee.cmake) |
|
0 commit comments