Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions cmake/ecbuild_find_mpi.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# ecbuild_find_mpi
# ================
#
# DEPRECATED: This macro is deprecated. Please use FindMPI directly.
#
# Find MPI and check if MPI compilers successfully compile C/C++/Fortran. ::
#
# ecbuild_find_mpi( [ COMPONENTS <component1> [ <component2> ... ] ]
Expand Down Expand Up @@ -72,6 +74,8 @@

macro( ecbuild_find_mpi )

ecbuild_deprecate("ecbuild_find_mpi is deprecated. Please use FindMPI directly.")

# parse parameters

set( options REQUIRED )
Expand Down Expand Up @@ -149,6 +153,8 @@ endmacro( ecbuild_find_mpi )
# ecbuild_enable_mpi
# ==================
#
# DEPRECATED: This macro is deprecated. Please use FindMPI directly.
#
# Find MPI, add include directories and set compiler flags. ::
#
# ecbuild_enable_mpi( [ COMPONENTS <component1> [ <component2> ... ] ]
Expand All @@ -172,6 +178,8 @@ endmacro( ecbuild_find_mpi )

macro( ecbuild_enable_mpi )

ecbuild_deprecate("ecbuild_enable_mpi is deprecated. Please use FindMPI directly.")

set( options REQUIRED )
set( single_value_args )
set( multi_value_args COMPONENTS )
Expand Down Expand Up @@ -216,6 +224,8 @@ endmacro( ecbuild_enable_mpi )
# ecbuild_include_mpi
# ===================
#
# DEPRECATED: This macro is deprecated. Please use FindMPI directly.
#
# Add MPI include directories and set compiler flags, assuming MPI was found.
#
# For each MPI language binding found, set corresponding compiler flags and
Expand All @@ -225,6 +235,8 @@ endmacro( ecbuild_enable_mpi )

macro( ecbuild_include_mpi )

ecbuild_deprecate("ecbuild_include_mpi is deprecated. Please use FindMPI directly.")

set( options )
set( single_value_args )
set( multi_value_args )
Expand Down
12 changes: 12 additions & 0 deletions cmake/ecbuild_find_omp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ endmacro()
# ecbuild_find_omp
# ================
#
# DEPRECATED: This macro is deprecated. Please use FindOpenMP directly.
#
# Find OpenMP. ::
#
# ecbuild_find_omp( [ COMPONENTS <component1> [ <component2> ... ] ]
Expand Down Expand Up @@ -116,6 +118,8 @@ endmacro()

macro( ecbuild_find_omp )

ecbuild_deprecate("ecbuild_find_omp is deprecated. Please use FindOpenMP directly.")

set( options REQUIRED STUBS )
set( single_value_args )
set( multi_value_args COMPONENTS )
Expand Down Expand Up @@ -200,13 +204,17 @@ endmacro( ecbuild_find_omp )
# ecbuild_enable_omp
# ==================
#
# DEPRECATED: This macro is deprecated. Please use FindOpenMP directly.
#
# Find OpenMP for C, C++ and Fortran and set the compiler flags for each
# language for which OpenMP support was detected.
#
##############################################################################

macro( ecbuild_enable_omp )

ecbuild_deprecate("ecbuild_enable_omp is deprecated. Please use FindOpenMP directly.")

ecbuild_debug("ecbuild_enable_omp: Trying to enable OpenMP")
ecbuild_find_omp( COMPONENTS C CXX Fortran )

Expand Down Expand Up @@ -236,13 +244,17 @@ endmacro( ecbuild_enable_omp )
# ecbuild_enable_ompstubs
# =======================
#
# DEPRECATED: This macro is deprecated. Please use FindOpenMP directly.
#
# Find OpenMP stubs for C, C++ and Fortran and set the compiler flags for each
# language for which OpenMP stubs were detected.
#
##############################################################################

macro( ecbuild_enable_ompstubs )

ecbuild_deprecate("ecbuild_enable_ompstubs is deprecated. Please use FindOpenMP directly.")

ecbuild_find_omp( COMPONENTS C CXX Fortran STUBS )

if( OMPSTUBS_C_FOUND )
Expand Down
Loading