From 2c297ac598c273d1109f1418ee4ff64357f486a6 Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Wed, 5 Feb 2020 17:35:49 +0100 Subject: Load module specific extensions for QtBuildInternals This patch enables each module to load their own Qt${version}ModuleBuildInternals.cmake to expose module specific features when building Qt. These scripts are only loaded when the package QtBuildInternals has been loaded. Change-Id: Ie58dd93ddd292cf106fe7ef147151a51fd5aa2b1 Reviewed-by: Alexandru Croitor --- cmake/QtModuleConfig.cmake.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmake/QtModuleConfig.cmake.in') diff --git a/cmake/QtModuleConfig.cmake.in b/cmake/QtModuleConfig.cmake.in index 58a84fb5d5..80a2b6da58 100644 --- a/cmake/QtModuleConfig.cmake.in +++ b/cmake/QtModuleConfig.cmake.in @@ -66,3 +66,9 @@ if (@QT_MODULE_HAS_META_TYPES_FILE@) endif() endif() endif() + +# Load Module's BuildIntenals should any exist +if (@INSTALL_CMAKE_NAMESPACE@BuildInternals_DIR AND + EXISTS "${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@BuildInternals.cmake") + include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@BuildInternals.cmake") +endif() -- cgit v1.2.3