Skip to content

Commit

Permalink
Fix invalid use of EXISTS used to check whether a variable is set
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro authored and nyalldawson committed Jul 31, 2019
1 parent 5c52371 commit dbb2aa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cmake/FindQScintilla.cmake
Expand Up @@ -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
Expand Down Expand Up @@ -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)

6 changes: 3 additions & 3 deletions cmake/FindQsci.cmake
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

0 comments on commit dbb2aa2

Please sign in to comment.