mirror of
https://github.com/JesseTG/melonds-ds.git
synced 2024-11-27 00:30:34 +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}")
|
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}'")
|
||||||
|
Loading…
Reference in New Issue
Block a user