1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #6184

Jimi Huotari (1):
      fix(cmake): use the 'STATIC' argument for 'translations_library'
This commit is contained in:
Anthony Bilinski 2020-07-05 16:41:49 -07:00
commit f5c813bdb9
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -81,7 +81,7 @@ endfunction()
generate_translation_resource() generate_translation_resource()
configure_file(${CMAKE_CURRENT_BINARY_DIR}/translations.qrc.in ./translations.qrc COPYONLY) configure_file(${CMAKE_CURRENT_BINARY_DIR}/translations.qrc.in ./translations.qrc COPYONLY)
add_library(translations_library ${CMAKE_CURRENT_BINARY_DIR}/translations.qrc) add_library(translations_library STATIC ${CMAKE_CURRENT_BINARY_DIR}/translations.qrc)
# An explicit dependency is needed or AUTORCC will run before the translation files are created # An explicit dependency is needed or AUTORCC will run before the translation files are created
set_target_properties(translations_library PROPERTIES AUTOGEN_TARGET_DEPENDS "${translations_FILES}") set_target_properties(translations_library PROPERTIES AUTOGEN_TARGET_DEPENDS "${translations_FILES}")