Fix invalid use of EXISTS used to check whether a variable is set

This commit is contained in:
Sandro Mani 2019-04-29 17:06:33 +02:00 committed by Nyall Dawson
parent 5c5237149c
commit dbb2aa2002
2 changed files with 6 additions and 6 deletions

View File

@ -19,10 +19,10 @@
# NOTE: include after check for Qt
IF(EXISTS QSCINTILLA_VERSION_STR)
IF(QSCINTILLA_VERSION_STR)
# Already in cache, be silent
SET(QSCINTILLA_FOUND TRUE)
ELSE(EXISTS QSCINTILLA_VERSION_STR)
ELSE(QSCINTILLA_VERSION_STR)
set(QSCINTILLA_LIBRARY_NAMES
qscintilla2-qt5
@ -88,7 +88,7 @@ ELSE(EXISTS QSCINTILLA_VERSION_STR)
ENDIF(QSCINTILLA_FIND_REQUIRED)
ENDIF(QSCINTILLA_FOUND)
ENDIF(EXISTS QSCINTILLA_VERSION_STR)
ENDIF(QSCINTILLA_VERSION_STR)
#MARK_AS_ADVANCED(QSCINTILLA_INCLUDE_DIR QSCINTILLA_LIBRARY)

View File

@ -16,10 +16,10 @@
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
IF(EXISTS QSCI_MOD_VERSION_STR)
IF(QSCI_MOD_VERSION_STR)
# Already in cache, be silent
SET(QSCI_FOUND TRUE)
ELSE(EXISTS QSCI_MOD_VERSION_STR)
ELSE(QSCI_MOD_VERSION_STR)
FIND_FILE(_find_qsci_py FindQsci.py PATHS ${CMAKE_MODULE_PATH} NO_CMAKE_FIND_ROOT_PATH)
@ -47,4 +47,4 @@ ELSE(EXISTS QSCI_MOD_VERSION_STR)
ENDIF(QSCI_FIND_REQUIRED)
ENDIF(QSCI_FOUND)
ENDIF(EXISTS QSCI_MOD_VERSION_STR)
ENDIF(QSCI_MOD_VERSION_STR)