summaryrefslogtreecommitdiffstats
path: root/cmake/QtModuleConfig.cmake.in
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2020-02-05 17:35:49 +0100
committerLeander Beernaert <leander.beernaert@qt.io>2020-02-06 12:21:58 +0000
commit2c297ac598c273d1109f1418ee4ff64357f486a6 (patch)
tree67c81f6d72575b777b3c452a9afbd016cdb97d5a /cmake/QtModuleConfig.cmake.in
parenta43f2a6caa671df6c40400d14ceb4ccb97267a51 (diff)
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 <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtModuleConfig.cmake.in')
-rw-r--r--cmake/QtModuleConfig.cmake.in6
1 files changed, 6 insertions, 0 deletions
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()