Fix environment variable cmake syntax

This commit is contained in:
Dale Glass 2021-02-16 12:46:30 +01:00
parent ca489bd420
commit 758ebd7f9d
2 changed files with 3 additions and 3 deletions

View file

@ -102,7 +102,7 @@ include("${CMAKE_BINARY_DIR}/vcpkg.cmake")
if (HIFI_ANDROID)
set(QT_CMAKE_PREFIX_PATH "$ENV{HIFI_ANDROID_PRECOMPILED}/qt/lib/cmake")
else()
if (NOT $ENV{VIRCADIA_USE_SYSTEM_QT})
if (NOT DEFINED ENV{VIRCADIA_USE_SYSTEM_QT})
if(NOT EXISTS "${CMAKE_BINARY_DIR}/qt.cmake")
message(FATAL_ERROR "qt configuration missing.")
endif()
@ -293,7 +293,7 @@ set_packaging_parameters()
# Locate the required Qt build on the filesystem
setup_qt()
if (NOT $ENV{VIRCADIA_USE_SYSTEM_QT})
if (NOT DEFINED ENV{VIRCADIA_USE_SYSTEM_QT})
list(APPEND CMAKE_PREFIX_PATH "${QT_CMAKE_PREFIX_PATH}")
endif()

View file

@ -435,7 +435,7 @@ else()
endif()
endif()
if (NOT $ENV{VIRCADIA_USE_SYSTEM_QT})
if (NOT DEFINED ENV{VIRCADIA_USE_SYSTEM_QT})
if (DEV_BUILD AND (APPLE OR UNIX))
# create a qt.conf file to override hard-coded search paths in Qt libs
set(QT_LIB_PATH "${QT_CMAKE_PREFIX_PATH}/../..")