Minor cmake fixes (#4636)

Minor cmake fixes
This commit is contained in:
Tres Finocchiaro
2018-09-30 21:30:56 -04:00
committed by GitHub
parent bd3f40933c
commit 0dc1bdbb68
2 changed files with 4 additions and 3 deletions

View File

@@ -18,7 +18,7 @@
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
# Files which confirm a successful clone
SET(VALID_CRUMBS "CMakeLists.txt;Makefile;Makefile.in;Makefile.am;configure.ac;configure.py;autogen.sh;.gitignore")
SET(VALID_CRUMBS "CMakeLists.txt;Makefile;Makefile.in;Makefile.am;configure.ac;configure.py;autogen.sh;.gitignore;LICENSE;Home.md")
# Try and use the specified shallow clone on submodules, if supported
SET(DEPTH_VALUE 100)

View File

@@ -2,12 +2,13 @@ SET(QT_LUPDATE_EXECUTABLE "${Qt5_LUPDATE_EXECUTABLE}")
SET(QT_LRELEASE_EXECUTABLE "${Qt5_LRELEASE_EXECUTABLE}")
IF(QT_LUPDATE_EXECUTABLE STREQUAL "")
EXECUTE_PROCESS(COMMAND "lupdate" "--help" RESULT_VARIABLE LUPDATE_FALLBACK OUTPUT_QUIET)
EXECUTE_PROCESS(COMMAND "lupdate" "-help" RESULT_VARIABLE LUPDATE_FALLBACK OUTPUT_QUIET)
IF(LUPDATE_FALLBACK EQUAL 0)
SET(QT_LUPDATE_EXECUTABLE lupdate)
SET(QT_LRELEASE_EXECUTABLE lrelease)
ELSE()
MESSAGE(FATAL_ERROR "Cannot generate locales")
MESSAGE(WARNING "Cannot generate locales")
RETURN()
ENDIF()
ENDIF()