Add cmake option to disable profiling stubs
Created by: philip-davis
Add the ADIOS2_USE_Profiling
option for cmake. If enabled, this defines ADIOS2_HAVE_PROFILING
, which the stubs can use to enable generating profile data, e.g. the tau stubs now define TAU_USE_STUBS
if ADIOS2_HAVE_PROFILING
is defined.
Profiling is enabled by default, if we are doing a shared build. I'm not sure either the default behavior, or the condition, are the right things to do.