on Windows the value of CMAKE_BUILD_TYPE will be automatically assigned to Debug if the user forgets to define it before configuring.
it's annoying, if we wanted to build in release we have to do a clean cmake cache and define CMAKE_BUILD_TYPE to Release (just redefining CMAKE_BUILD_TYPE isn't enough and is "dangerous")
Steps to reproduce
make a cmake configure of Sight without specifying a value for CMAKE_BUILD_TYPE
on Windows the value of CMAKE_BUILD_TYPE will be automatically assigned to Debug
Dev environment
OS: Windows
CMake version: cmake 3.x
Compiler: MSVC 2017
Build type: (debug/release)
Commit: curent version of sight without USE_CONAN option
What is the current bug behavior?
on Windows the value of CMAKE_BUILD_TYPE will be automatically assigned to Debug if the user forgets to define it before configuring.
What is the expected correct behavior?
if the user forgets to define CMAKE_BUILD_TYPE before configuring, stop the configuration and display an error message