build: fail sooner on windows / mac if unable to find Qt deploy tool
This commit is contained in:
parent
46db468ede
commit
9a799294f7
1 changed files with 11 additions and 3 deletions
|
|
@ -27,12 +27,20 @@ macro(configure_libs)
|
||||||
# Define the location of Qt deployment tool
|
# Define the location of Qt deployment tool
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug" AND VCPKG_QT)
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug" AND VCPKG_QT)
|
||||||
find_program(DEPLOYQT windeployqt.debug.bat)
|
set(DEPLOY_TOOL windeployqt.debug.bat)
|
||||||
else()
|
else()
|
||||||
find_program(DEPLOYQT windeployqt)
|
set(DEPLOY_TOOL windeployqt)
|
||||||
endif()
|
endif()
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
find_program(DEPLOYQT macdeployqt)
|
set(DEPLOY_TOOL macdeployqt)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (WIN32 OR APPLE)
|
||||||
|
find_program(DEPLOYQT ${DEPLOY_TOOL})
|
||||||
|
if(DEPLOYQT STREQUAL "DEPLOYQT-NOTFOUND")
|
||||||
|
message(FATAL_ERROR "Unable to locate the Qt Deploy Tool: \"${DEPLOY_TOOL}\".")
|
||||||
|
endif()
|
||||||
|
unset(DEPLOY_TOOL)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue