2019-09-12 19:07:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
function(qt_submodule_installation)
|
2021-12-07 06:12:51 +01:00
|
|
|
cmake_parse_arguments(_csc "" "OUT_SOURCE_PATH" "" ${ARGN})
|
|
|
|
qt_download_submodule(OUT_SOURCE_PATH TARGET_SOURCE_PATH ${_csc_UNPARSED_ARGUMENTS})
|
2019-09-16 21:37:55 +02:00
|
|
|
if(QT_UPDATE_VERSION)
|
|
|
|
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled PARENT_SCOPE)
|
|
|
|
else()
|
2021-12-07 06:12:51 +01:00
|
|
|
qt_build_submodule(${TARGET_SOURCE_PATH} ${_csc_UNPARSED_ARGUMENTS})
|
2019-09-16 21:37:55 +02:00
|
|
|
qt_install_copyright(${TARGET_SOURCE_PATH})
|
|
|
|
endif()
|
2021-12-07 06:12:51 +01:00
|
|
|
if(DEFINED _csc_OUT_SOURCE_PATH)
|
|
|
|
set(${_csc_OUT_SOURCE_PATH} ${TARGET_SOURCE_PATH} PARENT_SCOPE)
|
|
|
|
endif()
|
2019-09-12 19:07:22 +02:00
|
|
|
endfunction()
|