Windows: Attempt to fix building updater with MSVC

This commit is contained in:
Vicki Pfau 2022-02-20 22:44:37 -08:00
parent 862bd15afc
commit 5f46364ef6
2 changed files with 2 additions and 2 deletions

View File

@ -236,7 +236,7 @@ endif()
qt5_add_resources(RESOURCES resources.qrc)
if(BUILD_UPDATER)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/updater.qrc.in ${CMAKE_CURRENT_BINARY_DIR}/updater.qrc)
file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/updater.qrc INPUT ${CMAKE_CURRENT_SOURCE_DIR}/updater.qrc.in)
qt5_add_resources(UPDATER_RESOURCES ${CMAKE_CURRENT_BINARY_DIR}/updater.qrc)
list(APPEND RESOURCES ${UPDATER_RESOURCES})
endif()

View File

@ -1,5 +1,5 @@
<RCC>
<qresource>
<file alias="updater">${PROJECT_BINARY_DIR}/updater-stub${CMAKE_EXECUTABLE_SUFFIX}</file>
<file alias="updater">$<TARGET_FILE:updater-stub></file>
</qresource>
</RCC>