From 99f5e35a8d4fa01f8e29f31be28c012dd5c90250 Mon Sep 17 00:00:00 2001 From: Johannes Schneider Date: Thu, 22 Jul 2021 00:19:09 +0200 Subject: [PATCH] [metadata] Fix build type metadata for Visual Studio multiconfig --- include/inexor/vulkan-renderer/meta.hpp.in | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/include/inexor/vulkan-renderer/meta.hpp.in b/include/inexor/vulkan-renderer/meta.hpp.in index 4c0b01c7a..395e4c978 100644 --- a/include/inexor/vulkan-renderer/meta.hpp.in +++ b/include/inexor/vulkan-renderer/meta.hpp.in @@ -6,14 +6,16 @@ namespace inexor::vulkan_renderer { /// The following data will be replaced by CMake setup. constexpr const char *APP_NAME{"${INEXOR_APP_NAME}"}; -constexpr std::array APP_VERSION{${INEXOR_APP_VERSION_MAJOR}, ${INEXOR_APP_VERSION_MINOR}, - ${INEXOR_APP_VERSION_PATCH}}; +constexpr std::array APP_VERSION{${INEXOR_APP_VERSION_MAJOR}, ${INEXOR_APP_VERSION_MINOR}, ${INEXOR_APP_VERSION_PATCH}}; constexpr const char *APP_VERSION_STR{"${INEXOR_APP_VERSION_MAJOR}.${INEXOR_APP_VERSION_MINOR}.${INEXOR_APP_VERSION_PATCH}"}; constexpr const char* ENGINE_NAME{"${INEXOR_ENGINE_NAME}"}; -constexpr std::array ENGINE_VERSION{${INEXOR_ENGINE_VERSION_MAJOR}, ${INEXOR_ENGINE_VERSION_MINOR}, - ${INEXOR_ENGINE_VERSION_PATCH}}; +constexpr std::array ENGINE_VERSION{${INEXOR_ENGINE_VERSION_MAJOR}, ${INEXOR_ENGINE_VERSION_MINOR}, ${INEXOR_ENGINE_VERSION_PATCH}}; constexpr const char *ENGINE_VERSION_STR{"${INEXOR_ENGINE_VERSION_MAJOR}.${INEXOR_ENGINE_VERSION_MINOR}.${INEXOR_ENGINE_VERSION_PATCH}"}; constexpr const char *BUILD_GIT = "${INEXOR_GIT_SHA}"; -constexpr const char *BUILD_TYPE = "${CMAKE_BUILD_TYPE}"; +#ifndef NDEBUG +constexpr const char *BUILD_TYPE = "Debug"; +#else +constexpr const char *BUILD_TYPE = "Release"; +#endif } // namespace inexor::vulkan_renderer