Qt: Fix portable.ini creation

This commit is contained in:
Vicki Pfau 2018-10-03 20:53:26 -07:00
parent c94c5eeedf
commit 360890d5dc
1 changed files with 2 additions and 2 deletions

View File

@ -348,8 +348,8 @@ elseif(WIN32)
install(CODE "execute_process(COMMAND \"${BASH}\" \"${CMAKE_SOURCE_DIR}/tools/deploy-win.sh\" \"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.exe\" \"\${CMAKE_INSTALL_PREFIX}\" \"\$ENV{PWD}\" WORKING_DIRECTORY \"${CMAKE_BINARY_DIR}\")" COMPONENT ${BINARY_NAME}-qt)
endif()
if(DISTBUILD)
file(WRITE "portable.ini" "")
install(FILES "portable.ini" DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT ${BINARY_NAME}-qt)
file(WRITE "${CMAKE_BINARY_DIR}/portable.ini" "")
install(FILES "${CMAKE_BINARY_DIR}/portable.ini" DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT ${BINARY_NAME}-qt)
endif()
endif()