diff --git a/cmake/features/ECTRANS.cmake b/cmake/features/ECTRANS.cmake index 0d3a5355c..3d8ab3f08 100644 --- a/cmake/features/ECTRANS.cmake +++ b/cmake/features/ECTRANS.cmake @@ -2,13 +2,16 @@ if( atlas_HAVE_ATLAS_TRANS ) ### trans ... +if( NOT DEFINED ATLAS_ENABLE_ECTRANS AND DEFINED ATLAS_ENABLE_TRANS ) + ecbuild_warn("Atlas option ATLAS_ENABLE_TRANS is deprecated in favour of ATLAS_ENABLE_ECTRANS") + set( ATLAS_ENABLE_ECTRANS ${ATLAS_ENABLE_TRANS} ) +endif() if( NOT DEFINED ENABLE_ECTRANS AND DEFINED ENABLE_TRANS ) ecbuild_warn("Atlas option ENABLE_TRANS is deprecated in favour of ENABLE_ECTRANS") set( ENABLE_ECTRANS ${ENABLE_TRANS} ) endif() -if( NOT DEFINED ATLAS_ENABLE_ECTRANS AND DEFINED ATLAS_ENABLE_TRANS ) - ecbuild_warn("Atlas option ATLAS_ENABLE_TRANS is deprecated in favour of ATLAS_ENABLE_ECTRANS") - set( ATLAS_ENABLE_TRANS ${ENABLE_TRANS} ) +if( DEFINED ATLAS_ENABLE_ECTRANS ) + set( ENABLE_ECTRANS ${ATLAS_ENABLE_ECTRANS} ) endif() set( atlas_HAVE_PACKAGE_ECTRANS 0 ) @@ -32,4 +35,4 @@ ecbuild_add_option( FEATURE ECTRANS DESCRIPTION "Support for IFS spectral transforms" CONDITION atlas_HAVE_ATLAS_FUNCTIONSPACE AND transi_FOUND ) -endif() \ No newline at end of file +endif()