Set a different version string for RelWithDebInfo builds

This commit is contained in:
Jesse Talavera 2024-10-18 17:46:49 -04:00
parent 17b28a6277
commit 8b1404585a

View File

@ -87,13 +87,13 @@ include(cmake/ConfigureDependencies.cmake)
set(MELONDSDS_NAME "${CMAKE_PROJECT_NAME}")
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
set(MELONDSDS_VERSION "${CMAKE_PROJECT_VERSION}")
else()
if (GIT_STATE)
elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
set(MELONDSDS_VERSION "${CMAKE_PROJECT_VERSION} (RelWithDebInfo)")
elseif (GIT_STATE)
set(MELONDSDS_VERSION "${GIT_STATE}-${CMAKE_BUILD_TYPE}-upstream-${MELONDS_REPOSITORY_TAG}")
else ()
set(MELONDSDS_VERSION "v${CMAKE_PROJECT_VERSION}-nogit-${CMAKE_BUILD_TYPE}-upstream-${MELONDS_REPOSITORY_TAG}")
endif()
endif()
message(STATUS "${MELONDSDS_NAME} version string: '${MELONDSDS_VERSION}'")
configure_file("${CMAKE_SOURCE_DIR}/melondsds_libretro.info.in" "${CMAKE_CURRENT_BINARY_DIR}/melondsds_libretro.info")