Only install translations when INSTALL_TRANSLATIONS is set

This commit is contained in:
Jonas Kvinge 2020-08-13 20:55:53 +02:00
parent a27ae7e4a6
commit 1a8ca06495
1 changed files with 1 additions and 1 deletions

View File

@ -1243,7 +1243,7 @@ if(NOT APPLE)
install(TARGETS strawberry RUNTIME DESTINATION bin)
endif()
if(INSTALL_TRANSLATIONS_FILES)
if(INSTALL_TRANSLATIONS AND INSTALL_TRANSLATIONS_FILES)
install(FILES ${INSTALL_TRANSLATIONS_FILES} DESTINATION share/translations)
endif()