File: ecbuild.cmake

package info (click to toggle)
ecflow 5.15.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,868 kB
  • sloc: cpp: 269,341; python: 22,756; sh: 3,609; perl: 770; xml: 333; f90: 204; ansic: 141; makefile: 70
file content (35 lines) | stat: -rw-r--r-- 1,367 bytes parent folder | download | duplicates (14)
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
# (C) Copyright 2019- 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.

if( NOT ECBUILD_PROJECT_${CMAKE_CURRENT_SOURCE_DIR} )
set( ECBUILD_PROJECT_${CMAKE_CURRENT_SOURCE_DIR} TRUE )

########################################################################################################
# compatibility with ecbuild 2

if ( NOT DEFINED ECBUILD_2_COMPAT_VALUE )
    set( ECBUILD_2_COMPAT_VALUE OFF )
endif()
if ( NOT DEFINED ECBUILD_2_COMPAT_DEPRECATE_VALUE )
    set( ECBUILD_2_COMPAT_DEPRECATE_VALUE ON )
endif()

option( ECBUILD_2_COMPAT "Keep compatibility with ecbuild 2" ${ECBUILD_2_COMPAT_VALUE} )
option( ECBUILD_2_COMPAT_DEPRECATE "Emit deprecation warnings in the compatibility layer" ${ECBUILD_2_COMPAT_DEPRECATE_VALUE} )

if( ECBUILD_2_COMPAT_DEPRECATE )
    set( CMAKE_WARN_DEPRECATED ON )
endif()

########################################################################################################

include( ecbuild_project )

########################################################################################################

endif()