Skip to content

Commit e3fa6f4

Browse files
Fix version number in the generated Windows resource
1 parent 98ceadd commit e3fa6f4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if (USE_VCPKG)
1616
endif()
1717

1818
project(melonDS
19-
VERSION 1.0.0
19+
VERSION 1.0
2020
DESCRIPTION "DS emulator, sorta"
2121
HOMEPAGE_URL "https://melonds.kuribo64.net"
2222
LANGUAGES C CXX)

res/melon.rc.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
//include version information in .exe, modify these values to match your needs
88
1 VERSIONINFO
9-
FILEVERSION ${melonDS_VERSION_MAJOR},${melonDS_VERSION_MINOR},${melonDS_VERSION_PATCH},0
10-
PRODUCTVERSION ${melonDS_VERSION_MAJOR},${melonDS_VERSION_MINOR},${melonDS_VERSION_PATCH},0
9+
FILEVERSION ${MELON_RC_VERSION}
10+
PRODUCTVERSION ${MELON_RC_VERSION}
1111
FILETYPE VFT_APP
1212
{
1313
BLOCK "StringFileInfo"

src/frontend/qt_sdl/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ if (WIN32)
190190
target_compile_definitions(melonDS PRIVATE WIN32_PORTABLE)
191191
endif()
192192

193+
string(REPLACE . , MELON_RC_VERSION ${melonDS_VERSION})
193194
configure_file("${CMAKE_SOURCE_DIR}/res/melon.rc.in" "${CMAKE_BINARY_DIR}/res/melon.rc")
194195
target_sources(melonDS PUBLIC "${CMAKE_BINARY_DIR}/res/melon.rc")
195196
target_include_directories(melonDS PRIVATE "${CMAKE_BINARY_DIR}/res")

0 commit comments

Comments
 (0)