mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-09 00:08:52 -04:00
Fix invalid use of EXISTS used to check whether a variable is set
This commit is contained in:
parent
5c5237149c
commit
dbb2aa2002
@ -19,10 +19,10 @@
|
|||||||
# NOTE: include after check for Qt
|
# NOTE: include after check for Qt
|
||||||
|
|
||||||
|
|
||||||
IF(EXISTS QSCINTILLA_VERSION_STR)
|
IF(QSCINTILLA_VERSION_STR)
|
||||||
# Already in cache, be silent
|
# Already in cache, be silent
|
||||||
SET(QSCINTILLA_FOUND TRUE)
|
SET(QSCINTILLA_FOUND TRUE)
|
||||||
ELSE(EXISTS QSCINTILLA_VERSION_STR)
|
ELSE(QSCINTILLA_VERSION_STR)
|
||||||
|
|
||||||
set(QSCINTILLA_LIBRARY_NAMES
|
set(QSCINTILLA_LIBRARY_NAMES
|
||||||
qscintilla2-qt5
|
qscintilla2-qt5
|
||||||
@ -88,7 +88,7 @@ ELSE(EXISTS QSCINTILLA_VERSION_STR)
|
|||||||
ENDIF(QSCINTILLA_FIND_REQUIRED)
|
ENDIF(QSCINTILLA_FIND_REQUIRED)
|
||||||
ENDIF(QSCINTILLA_FOUND)
|
ENDIF(QSCINTILLA_FOUND)
|
||||||
|
|
||||||
ENDIF(EXISTS QSCINTILLA_VERSION_STR)
|
ENDIF(QSCINTILLA_VERSION_STR)
|
||||||
|
|
||||||
#MARK_AS_ADVANCED(QSCINTILLA_INCLUDE_DIR QSCINTILLA_LIBRARY)
|
#MARK_AS_ADVANCED(QSCINTILLA_INCLUDE_DIR QSCINTILLA_LIBRARY)
|
||||||
|
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
# 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
|
# Already in cache, be silent
|
||||||
SET(QSCI_FOUND TRUE)
|
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)
|
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_FIND_REQUIRED)
|
||||||
ENDIF(QSCI_FOUND)
|
ENDIF(QSCI_FOUND)
|
||||||
|
|
||||||
ENDIF(EXISTS QSCI_MOD_VERSION_STR)
|
ENDIF(QSCI_MOD_VERSION_STR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user