|
1 | 1 | include(SaveCompilerFlags) |
2 | | -include(FindBrokenIntrinsics) |
3 | | -include(OptimizeForArchitecture) |
| 2 | +if(ENABLE_CXX11_SUPPORT) |
| 3 | + include(CheckCXX11Features) |
| 4 | +endif() |
| 5 | +include(CheckCXXCompilerFlag) |
| 6 | +include(CheckCCompilerFlag) |
| 7 | +include(CheckFortranCompilerFlag) |
4 | 8 |
|
5 | 9 | if(ENABLE_VECTORIZATION) |
6 | | - set(DEFINITIONS) |
7 | | - set(CXX_ARCHITECTURE_FLAGS) |
8 | | - set(C_ARCHITECTURE_FLAGS) |
9 | | - set(Fortran_ARCHITECTURE_FLAGS) |
10 | | - find_broken_intrinsics() |
11 | | - OptimizeForArchitecture() |
12 | | - message(STATUS "Vectorization flags used:") |
13 | | - message(STATUS " CXX: ${CXX_ARCHITECTURE_FLAGS}") |
14 | | - message(STATUS " C: ${C_ARCHITECTURE_FLAGS}") |
15 | | - message(STATUS " Fortran: ${Fortran_ARCHITECTURE_FLAGS}") |
| 10 | + include(FindBrokenIntrinsics) |
| 11 | + include(OptimizeForArchitecture) |
| 12 | + set(DEFINITIONS) |
| 13 | + set(CXX_ARCHITECTURE_FLAGS) |
| 14 | + set(C_ARCHITECTURE_FLAGS) |
| 15 | + set(Fortran_ARCHITECTURE_FLAGS) |
| 16 | + find_broken_intrinsics() |
| 17 | + OptimizeForArchitecture() |
| 18 | + message(STATUS "Vectorization flags used:") |
| 19 | + message(STATUS " CXX: ${CXX_ARCHITECTURE_FLAGS}") |
| 20 | + message(STATUS " C: ${C_ARCHITECTURE_FLAGS}") |
| 21 | + message(STATUS " Fortran: ${Fortran_ARCHITECTURE_FLAGS}") |
16 | 22 | endif() |
17 | 23 |
|
18 | 24 | if(CMAKE_C_COMPILER_WORKS) |
|
0 commit comments