Skip to content

Commit

Permalink
[metadata] Fix build type metadata for Visual Studio multiconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmNotHanni committed Jul 21, 2021
1 parent 243dafc commit 99f5e35
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions include/inexor/vulkan-renderer/meta.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::uint32_t, 3> APP_VERSION{${INEXOR_APP_VERSION_MAJOR}, ${INEXOR_APP_VERSION_MINOR},
${INEXOR_APP_VERSION_PATCH}};
constexpr std::array<std::uint32_t, 3> 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<std::uint32_t, 3> ENGINE_VERSION{${INEXOR_ENGINE_VERSION_MAJOR}, ${INEXOR_ENGINE_VERSION_MINOR},
${INEXOR_ENGINE_VERSION_PATCH}};
constexpr std::array<std::uint32_t, 3> 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

0 comments on commit 99f5e35

Please sign in to comment.