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,12 +87,12 @@ include(cmake/ConfigureDependencies.cmake)
set(MELONDSDS_NAME "${CMAKE_PROJECT_NAME}") set(MELONDSDS_NAME "${CMAKE_PROJECT_NAME}")
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
set(MELONDSDS_VERSION "${CMAKE_PROJECT_VERSION}") set(MELONDSDS_VERSION "${CMAKE_PROJECT_VERSION}")
else() elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
if (GIT_STATE) set(MELONDSDS_VERSION "${CMAKE_PROJECT_VERSION} (RelWithDebInfo)")
set(MELONDSDS_VERSION "${GIT_STATE}-${CMAKE_BUILD_TYPE}-upstream-${MELONDS_REPOSITORY_TAG}") elseif (GIT_STATE)
else () set(MELONDSDS_VERSION "${GIT_STATE}-${CMAKE_BUILD_TYPE}-upstream-${MELONDS_REPOSITORY_TAG}")
set(MELONDSDS_VERSION "v${CMAKE_PROJECT_VERSION}-nogit-${CMAKE_BUILD_TYPE}-upstream-${MELONDS_REPOSITORY_TAG}") else ()
endif() 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}'") message(STATUS "${MELONDSDS_NAME} version string: '${MELONDSDS_VERSION}'")