mirror of
https://github.com/JesseTG/melonds-ds.git
synced 2024-11-26 16:20:48 +00:00
Set a different version string for RelWithDebInfo builds
This commit is contained in:
parent
17b28a6277
commit
8b1404585a
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user