diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 94df8fbe6..8dc6a8e9d 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -548,7 +548,10 @@ foreach(config ${configs}) endif() add_custom_command( - OUTPUT ${buildDir}/${config}/QtWebEngineCore.stamp ${sandboxOutput} runAlways # use generator expression in CMAKE 3.20 + OUTPUT + ${buildDir}/${config}/QtWebEngineCore.stamp + ${sandboxOutput} + ${buildDir}/${config}/runAlways # use generator expression in CMAKE 3.20 WORKING_DIRECTORY ${buildDir}/${config} COMMAND ${CMAKE_COMMAND} -E echo "Ninja ${config} build" COMMAND Ninja::ninja @@ -559,7 +562,6 @@ foreach(config ${configs}) VERBATIM COMMAND_EXPAND_LISTS ) - add_custom_target(ninja_${config} DEPENDS ${buildDir}/${config}/QtWebEngineCore.stamp ${sandboxOutput} runAlways) endforeach() ## @@ -603,7 +605,7 @@ foreach(config ${configs}) set_property(TARGET WebEngineCoreSandbox PROPERTY IMPORTED_LOCATION_${cfg} ${sandboxLibraryPath}) set_source_files_properties(${sandboxLibraryPath} PROPERTIES GENERATED TRUE) - add_custom_command(OUTPUT ${sandboxLibraryPath} DEPENDS ninja_${config}) + add_custom_command(OUTPUT ${sandboxLibraryPath} DEPENDS ${sandboxOutput}) add_custom_target(generate_sandbox_${cfg} DEPENDS ${sandboxLibraryPath}) endif() |