mirror of
https://github.com/JesseTG/melonds-ds.git
synced 2024-11-23 06:29:46 +00:00
Set a different version string for RelWithDebInfo builds
This commit is contained in:
parent
17b28a6277
commit
8b1404585a
@ -87,12 +87,12 @@ 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)
|
||||
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()
|
||||
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()
|
||||
|
||||
message(STATUS "${MELONDSDS_NAME} version string: '${MELONDSDS_VERSION}'")
|
||||
|
Loading…
Reference in New Issue
Block a user