message: Link ImGui as a shared library on macOS to prevent invalid plugin context
  On macOS, linking ImGui statically to both the main application and
  the plugin, produces an invalid ImGui context ptr in the plugin
  panels.
diff: ## Copyright 2009-2020 Intel Corporation
  ## SPDX-License-Identifier: Apache-2.0
  -# XXX leave imgui as SHARED library. On macOS, statically it crashes panels
  -add_library(imgui SHARED
  +# XXX make imgui a SHARED library on macOS.
  +# linked statically it crashes panels with an invalid ImGui context ptr
  +if (APPLE)
  + set(libType SHARED)
  +else()
  + set(libType STATIC)
  +endif()
  +add_library(imgui ${libType}
  imgui.cpp
  imgui_draw.cpp
  imgui_demo.cpp
  