Fix version number in the generated Windows resource

This commit is contained in:
Nadia Holmquist Pedersen
2024-11-21 01:10:13 +01:00
parent 98ceadd44c
commit e3fa6f4224
3 changed files with 4 additions and 3 deletions

View File

@ -190,6 +190,7 @@ if (WIN32)
target_compile_definitions(melonDS PRIVATE WIN32_PORTABLE)
endif()
string(REPLACE . , MELON_RC_VERSION ${melonDS_VERSION})
configure_file("${CMAKE_SOURCE_DIR}/res/melon.rc.in" "${CMAKE_BINARY_DIR}/res/melon.rc")
target_sources(melonDS PUBLIC "${CMAKE_BINARY_DIR}/res/melon.rc")
target_include_directories(melonDS PRIVATE "${CMAKE_BINARY_DIR}/res")