diff --git a/src/platform/qt/CMakeLists.txt b/src/platform/qt/CMakeLists.txt index fdbe4ab9c..9fcb99080 100644 --- a/src/platform/qt/CMakeLists.txt +++ b/src/platform/qt/CMakeLists.txt @@ -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() diff --git a/src/platform/qt/updater.qrc.in b/src/platform/qt/updater.qrc.in index edf2cd38e..d8f015ace 100644 --- a/src/platform/qt/updater.qrc.in +++ b/src/platform/qt/updater.qrc.in @@ -1,5 +1,5 @@ - ${PROJECT_BINARY_DIR}/updater-stub${CMAKE_EXECUTABLE_SUFFIX} + $