File: project_summary.cmake

package info (click to toggle)
ectrans 1.7.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,972 kB
  • sloc: f90: 51,064; ansic: 5,942; cpp: 1,112; python: 488; sh: 127; makefile: 43
file content (45 lines) | stat: -rw-r--r-- 1,971 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# (C) Copyright 2020- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmental organisation
# nor does it submit to any jurisdiction.

ecbuild_info( "build type                   : [${CMAKE_BUILD_TYPE}]" )
set( Fortran_flags_str "Fortran flags" )
set( C_flags_str       "C flags      " )
set( CXX_flags_str     "C++ flags    " )
set( HIP_flags_str     "HIP flags    " )
string( TOUPPER ${PROJECT_NAME} PNAME )
    foreach( lang Fortran C CXX HIP )
        set( flags "${CMAKE_${lang}_FLAGS} ${CMAKE_${lang}_FLAGS_${CMAKE_BUILD_TYPE_CAPS}} ${${PNAME}_${lang}_FLAGS} ${${PNAME}_${lang}_FLAGS_${CMAKE_BUILD_TYPE_CAPS}}" )
        string(REGEX REPLACE "[ ]+" " " flags ${flags})
        string(STRIP "${flags}" flags)
ecbuild_info( "${${lang}_flags_str}                : [${flags}]" )
    endforeach()
ecbuild_info( "OMP" )
    foreach( lang Fortran )
ecbuild_info( "    OpenMP_${lang}_FLAGS     : [${OpenMP_${lang}_FLAGS}]" )
    endforeach()
ecbuild_info( "ACC" )
    foreach( lang Fortran )
ecbuild_info( "    OpenACC_${lang}_FLAGS    : [${OpenACC_${lang}_FLAGS}]" )
    endforeach()
ecbuild_info( "BLAS/LAPACK" )
    if( HAVE_SINGLE_PRECISION AND HAVE_DOUBLE_PRECISION AND ECTRANS_CRAYHACK_DOUBLE_PRECISION_WITHOUT_MKL )
ecbuild_info( "    trans_dp                 : [${LAPACK_dp}]" )
ecbuild_info( "    trans_sp                 : [${LAPACK_sp}]" )
    else()
ecbuild_info( "    LAPACK_LIBRARIES         : [${LAPACK_LIBRARIES}]" )
    endif()
ecbuild_info( "FFTW" )
ecbuild_info( "    FFTW_LIBRARIES           : [${FFTW_LIBRARIES}]" )
  if( CMAKE_TEST_LAUNCHER )
ecbuild_info( "CMAKE_TEST_LAUNCHER          : [${CMAKE_TEST_LAUNCHER}]" )
  endif()
ecbuild_info( "---------------------------------------------------------" )