mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 04:42:49 +02:00
Use QT_CMAKE_PREFIX_PATH only on local builds.
This commit is contained in:
parent
24110ebf86
commit
d7197dba65
1 changed files with 6 additions and 3 deletions
|
@ -8,9 +8,12 @@
|
|||
# Sets the QT_CMAKE_PREFIX_PATH and QT_DIR variables
|
||||
# Also enables CMAKE_AUTOMOC and CMAKE_AUTORCC
|
||||
macro(setup_qt)
|
||||
# if QT_CMAKE_PREFIX_PATH was not specified before hand,
|
||||
# try to use the environment variable
|
||||
if (NOT DEFINED ENV{QT_CMAKE_PREFIX_PATH} )
|
||||
# if we are in a development build and QT_CMAKE_PREFIX_PATH is specified
|
||||
# then use it,
|
||||
# otherwise, use the vcpkg'ed version
|
||||
if ((RELEASE_TYPE STREQUAL "DEV") AND DEFINED ENV{QT_CMAKE_PREFIX_PATH} )
|
||||
set(QT_CMAKE_PREFIX_PATH $ENV{QT_CMAKE_PREFIX_PATH})
|
||||
else ()
|
||||
set(QT_CMAKE_PREFIX_PATH $ENV{HIFI_VCPKG_BASE_VERSION} "/installed/qt5-install/lib/cmake")
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue