message: Use Finddpcpp_compiler cmake module for dpcpp examples
diff: @@ -98,8 +98,17 @@ add_subdirectory(aobench)
  add_subdirectory(mandelbrot)
  add_subdirectory(simple)
  add_subdirectory(simple-usm)
  +
  +# DPC++ related examples should not run as part of ISPC_BUILD
  +# They require complete ISPC installation and ISPC_INCLUDE_DPCPP_EXAMPLES turned ON
  +if (NOT ISPC_BUILD AND ISPC_INCLUDE_DPCPP_EXAMPLES)
  + include(${ISPCRT_DIR}/Finddpcpp_compiler.cmake)
  + if (NOT "${CMAKE_CXX_COMPILER}" STREQUAL "${DPCPP_COMPILER}")
  + message(FATAL_ERROR "CMAKE_CXX_COMPILER should be set to " ${DPCPP_COMPILER} " when ISPC_INCLUDE_DPCPP_EXAMPLES=ON" )
  + endif()
  add_subdirectory(simple-dpcpp)
  add_subdirectory(simple-dpcpp-l0)
  add_subdirectory(pipeline-dpcpp)
  +endif()
  include(TestLists.txt)
  