From 5ba63af9cb3f88c41e25bf4abe084c32aee9b405 Mon Sep 17 00:00:00 2001 From: Jimi Huotari Date: Sun, 5 Jul 2020 20:55:09 +0300 Subject: [PATCH] fix(cmake): use the 'STATIC' argument for 'translations_library' Fix running qTox in environments that set 'BUILD_SHARED_LIBS=ON' at build-time. Thanks-to: Andreas Sturmlechner Closes: https://github.com/qTox/qTox/issues/6183 --- translations/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt index f5a37ae8b..02afda0bf 100644 --- a/translations/CMakeLists.txt +++ b/translations/CMakeLists.txt @@ -81,7 +81,7 @@ endfunction() generate_translation_resource() 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 set_target_properties(translations_library PROPERTIES AUTOGEN_TARGET_DEPENDS "${translations_FILES}")