mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-16 04:27:56 +00:00
Handle cmake version < 3.12
This commit is contained in:
parent
df596a332e
commit
61fc68693a
1 changed files with 5 additions and 2 deletions
|
|
@ -23,8 +23,11 @@ foreach (lang ${LANGUAGES})
|
|||
|
||||
#Clean existing generated file
|
||||
file(REMOVE "${QM_FILES_OUTPUT_DIR}/${lang}.qm")
|
||||
#Force re-interpretation of ts files
|
||||
file(TOUCH "${CMAKE_CURRENT_SOURCE_DIR}/${lang}.ts")
|
||||
|
||||
if (${CMAKE_VERSION} VERSION_GREATER "3.12" OR ${CMAKE_VERSION} VERSION_EQUAL "3.12")
|
||||
#Force re-interpretation of ts files. Touch command available only from 3.12 onwards
|
||||
file(TOUCH "${CMAKE_CURRENT_SOURCE_DIR}/${lang}.ts")
|
||||
endif()
|
||||
|
||||
list(APPEND TS_FILES "${CMAKE_CURRENT_SOURCE_DIR}/${lang}.ts")
|
||||
endforeach()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue