message: Defines CMAKE_BUILD_TYPE if not defined in Windows
diff: @@ -46,6 +46,9 @@ endmacro()
  ## Setup CMAKE_BUILD_TYPE to have a default + cycle between options in UI
  macro(ospray_configure_build_type)
  set(CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo")
  + if(NOT CMAKE_BUILD_TYPE)
  + set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the build type." FORCE)
  + endif()
  if (WIN32)
  if (NOT OSPRAY_DEFAULT_CMAKE_CONFIGURATION_TYPES_SET)
  set(CMAKE_CONFIGURATION_TYPES "${CONFIGURATION_TYPES}"
  @@ -54,9 +57,6 @@ macro(ospray_configure_build_type)
  CACHE INTERNAL "Default CMake configuration types set.")
  endif()
  else()
  - if(NOT CMAKE_BUILD_TYPE)
  - set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the build type." FORCE)
  - endif()
  set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CONFIGURATION_TYPES})
  endif()
  