Skip to content

Commit 120b5f3

Browse files
committed
[metadata] Fix build type metadata for Visual Studio multiconfig
1 parent b6c5f53 commit 120b5f3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

include/inexor/vulkan-renderer/meta.hpp.in

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ namespace inexor::vulkan_renderer {
66

77
/// The following data will be replaced by CMake setup.
88
constexpr const char *APP_NAME{"${INEXOR_APP_NAME}"};
9-
constexpr std::array<std::uint32_t, 3> APP_VERSION{${INEXOR_APP_VERSION_MAJOR}, ${INEXOR_APP_VERSION_MINOR},
10-
${INEXOR_APP_VERSION_PATCH}};
9+
constexpr std::array<std::uint32_t, 3> APP_VERSION{${INEXOR_APP_VERSION_MAJOR}, ${INEXOR_APP_VERSION_MINOR}, ${INEXOR_APP_VERSION_PATCH}};
1110
constexpr const char *APP_VERSION_STR{"${INEXOR_APP_VERSION_MAJOR}.${INEXOR_APP_VERSION_MINOR}.${INEXOR_APP_VERSION_PATCH}"};
1211
constexpr const char* ENGINE_NAME{"${INEXOR_ENGINE_NAME}"};
13-
constexpr std::array<std::uint32_t, 3> ENGINE_VERSION{${INEXOR_ENGINE_VERSION_MAJOR}, ${INEXOR_ENGINE_VERSION_MINOR},
14-
${INEXOR_ENGINE_VERSION_PATCH}};
12+
constexpr std::array<std::uint32_t, 3> ENGINE_VERSION{${INEXOR_ENGINE_VERSION_MAJOR}, ${INEXOR_ENGINE_VERSION_MINOR}, ${INEXOR_ENGINE_VERSION_PATCH}};
1513
constexpr const char *ENGINE_VERSION_STR{"${INEXOR_ENGINE_VERSION_MAJOR}.${INEXOR_ENGINE_VERSION_MINOR}.${INEXOR_ENGINE_VERSION_PATCH}"};
1614
constexpr const char *BUILD_GIT = "${INEXOR_GIT_SHA}";
17-
constexpr const char *BUILD_TYPE = "${CMAKE_BUILD_TYPE}";
15+
#ifndef NDEBUG
16+
constexpr const char *BUILD_TYPE = "Debug";
17+
#else
18+
constexpr const char *BUILD_TYPE = "Release";
19+
#endif
1820

1921
} // namespace inexor::vulkan_renderer

0 commit comments

Comments
 (0)