[vlmc-devel] cmake: Centralize translation related code

Hugo Beauzée-Luyssen git at videolan.org
Fri Apr 1 23:56:16 CEST 2016


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Apr  1 23:29:56 2016 +0200| [36d5e3e9fe8d442edbf651122c0c83aac3162d5d] | committer: Hugo Beauzée-Luyssen

cmake: Centralize translation related code

> https://code.videolan.org/videolan/vlmc/commit/36d5e3e9fe8d442edbf651122c0c83aac3162d5d
---

 CMakeLists.txt    | 2 --
 ts/CMakeLists.txt | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a95b292..c7c9ca9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,8 +118,6 @@ if (Qt5Core_FOUND)
     else()
         find_packages(Qt5 COMPONENTS Xml Network)
     endif()
-
-    find_package(Qt5LinguistTools REQUIRED)
 endif()
 
 # layout of VLMC installation
diff --git a/ts/CMakeLists.txt b/ts/CMakeLists.txt
index be2025a..f1b63c1 100644
--- a/ts/CMakeLists.txt
+++ b/ts/CMakeLists.txt
@@ -62,6 +62,7 @@ function(vlmc_get_ts_files VLMC_TS_FILES_OUT)
 endfunction()
 
 function(vlmc_get_ts VLMC_QM_FILES_OUT)
+    find_package(Qt5LinguistTools)
     if(Qt5LinguistTools_FOUND)
         vlmc_get_ts_files(vlmc_TS)
 



More information about the Vlmc-devel mailing list