vulkan-renderer
vulkan-renderer copied to clipboard
Build type in engine metadata is empty on Windows
Describe the bug
Inexor Engine, version 0.1.0
Inexor Vulkan-renderer example, version 0.1.0
Configuration: , Git SHA 13e16b7
2021-07-21T20:32:20+02:00
To Reproduce
Steps to reproduce the behavior:
Start inexor-vulkan-renderer-benchmarks
Expected behavior The git sha is supposed to be displayed
Screenshots

Desktop (please complete the following information):
- OS: Windows
Ok so I can confirm this issue does not exist on Linux.
So the problem is that since Visual Studio is using a multiconfig, there is no defined build type while the project map is being generated in CMake. This change in meta.hpp.in will simplify and fix it:
#ifndef NDEBUG
constexpr const char *BUILD_TYPE = "Debug";
#else
constexpr const char *BUILD_TYPE = "Release";
#endif