message: Only automatically enable profiling if we are doing a shared build.
diff: @@ -188,7 +188,9 @@ else()
  set(ADIOS2_HAVE_SysVShMem OFF)
  endif()
  -if(ADIOS2_USE_Profiling)
  +if(ADIOS2_USE_Profiling STREQUAL AUTO AND SHARED_LIBS_SUPPORTED)
  + set(ADIOS2_HAVE_Profiling ON)
  +elseif(ADIOS2_USE_Profiling)
  set(ADIOS2_HAVE_Profiling ON)
  endif()
  