Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2
linphoneqt
linphoneqt-fix-cmake-i18n.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File linphoneqt-fix-cmake-i18n.patch of Package linphoneqt
--- a/assets/languages/CMakeLists.txt +++ b/assets/languages/CMakeLists.txt @@ -27,6 +27,13 @@ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/ # Create `qm` files from `ts` files. qt5_create_translation(QM_FILES ${TS_FILES} ${SOURCES} ${HEADERS} ${QML_SOURCES} OPTIONS -no-obsolete) +# Workaround: Create empty files for some cmake versions. Otherwise, the qm rules can't be used. +foreach (qm ${QM_FILES}) + if (NOT EXISTS "${qm}") + file(GENERATE OUTPUT "${qm}" CONTENT "") + endif () +endforeach () + # Update translations. add_custom_target(update_translations COMMAND ${CMAKE_COMMAND} "-DLANGUAGES=\"${LANGUAGES}\"" -P "${CMAKE_CURRENT_SOURCE_DIR}/clean_translations.cmake"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor