cmake: Stop configuration when QT_INSTALL_DOCS env is invalid
Change-Id: I560cda6107c67e3fc9fd4fb4ea10e2b5c1e7fa49 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
This commit is contained in:
parent
dc1f4b742e
commit
c2ec63faea
@ -144,6 +144,11 @@ function(qt_internal_add_docs)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(DEFINED ENV{QT_INSTALL_DOCS})
|
if(DEFINED ENV{QT_INSTALL_DOCS})
|
||||||
|
if(NOT EXISTS "$ENV{QT_INSTALL_DOCS}")
|
||||||
|
message(FATAL_ERROR
|
||||||
|
"Environment variable QT_INSTALL_DOCS points to a directory which does not exist:\n"
|
||||||
|
"$ENV{QT_INSTALL_DOCS}")
|
||||||
|
endif()
|
||||||
set(qt_install_docs_env "$ENV{QT_INSTALL_DOCS}")
|
set(qt_install_docs_env "$ENV{QT_INSTALL_DOCS}")
|
||||||
elseif(QT_SUPERBUILD OR "${PROJECT_NAME}" STREQUAL "QtBase")
|
elseif(QT_SUPERBUILD OR "${PROJECT_NAME}" STREQUAL "QtBase")
|
||||||
set(qt_install_docs_env "${QtBase_BINARY_DIR}/${INSTALL_DOCDIR}")
|
set(qt_install_docs_env "${QtBase_BINARY_DIR}/${INSTALL_DOCDIR}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user