diff --git a/CMakeLists.txt b/CMakeLists.txt index b31e98c3..c9b27deb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -129,8 +129,8 @@ if(WIN32) # In Release mode, copy Qt image format plugins COMMAND if $==1 ("${CMAKE_COMMAND}" -E copy - "${RELEASE_DIR}/plugins/imageformats/qjpeg.dll" - "${CMAKE_BINARY_DIR}/bin/${ARCH_NAME}$") + "${QTDIR}/plugins/imageformats/qjpeg.dll" + "${RELEASE_DIR}/bin/${ARCH_NAME}/qjpeg.dll") # If config is RelWithDebInfo, package release files COMMAND if $==1 (