summaryrefslogtreecommitdiff
path: root/cmake/Functions.cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-04-20 12:12:51 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2022-04-20 12:24:54 +0200
commit6dd55011f00c265c8353e1aab1a692d651fcd2ab (patch)
tree324a221574a45c6c4afba0f1a2d6981c8e42306a /cmake/Functions.cmake
parent890398a7a6fa88045bc1f852d828905f80459f9b (diff)
downloadqtwebengine-6dd55011f00c265c8353e1aab1a692d651fcd2ab.tar.gz
CMake: Add a dependency on Gn.cmake
Previously if Gn.cmake was touched, GN was not reran. Pick-to: 6.2 6.3 Change-Id: I39a070319c5af2a78a8f4e75f2f56ed87cdcb7da Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'cmake/Functions.cmake')
-rw-r--r--cmake/Functions.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/Functions.cmake b/cmake/Functions.cmake
index ef605103f..cc6f609f6 100644
--- a/cmake/Functions.cmake
+++ b/cmake/Functions.cmake
@@ -1132,8 +1132,11 @@ function(add_gn_command)
-P ${WEBENGINE_ROOT_SOURCE_DIR}/cmake/Gn.cmake
WORKING_DIRECTORY ${WEBENGINE_ROOT_BUILD_DIR}
COMMENT "Run gn for target ${arg_CMAKE_TARGET} in ${arg_BUILDDIR}"
- DEPENDS ${gnArgArgFile} run_${arg_MODULE}_GnReady
- "${WEBENGINE_ROOT_SOURCE_DIR}/src/${arg_MODULE}/configure/BUILD.root.gn.in"
+ DEPENDS
+ ${gnArgArgFile}
+ run_${arg_MODULE}_GnReady
+ "${WEBENGINE_ROOT_SOURCE_DIR}/src/${arg_MODULE}/configure/BUILD.root.gn.in"
+ "${WEBENGINE_ROOT_SOURCE_DIR}/cmake/Gn.cmake"
)
add_custom_target(runGn_${arg_GN_TARGET}
DEPENDS #TODO this is fixed in cmake 3.20 so we could simply use GN_TARGET and not create new one