diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2019-10-04 14:58:10 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2019-10-11 09:19:53 +0000 |
commit | b2de87a089f2895b1676951168f21d7dc9fa2b2d (patch) | |
tree | 51d30abfdf78a204674e73fb48f2cc4c00d2dad2 /cmake/QtResource.cmake.in | |
parent | a986455d108d99ebc8234b9bfab2407c33422e41 (diff) |
CMake: Create output directory for qmlcachegen
Change-Id: I395de27bfe0eed46c595ac664b2c7218abbdb28b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtResource.cmake.in')
-rw-r--r-- | cmake/QtResource.cmake.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtResource.cmake.in b/cmake/QtResource.cmake.in index a62930f572..c1754fd883 100644 --- a/cmake/QtResource.cmake.in +++ b/cmake/QtResource.cmake.in @@ -96,6 +96,10 @@ function(__qt_quick_compiler_process_resources target resource_name) string(REGEX REPLACE "\.qml$" "_qml" compiled_file ${compiled_file}) string(REGEX REPLACE "[\$#\?]+" "_" compiled_file ${compiled_file}) set(compiled_file "${CMAKE_CURRENT_BINARY_DIR}/.rcc/qmlcache/${resource_name}/${compiled_file}.cpp") + get_filename_component(out_dir ${compiled_file} DIRECTORY) + if(NOT EXISTS ${out_dir}) + file(MAKE_DIRECTORY ${out_dir}) + endif() add_custom_command( OUTPUT ${compiled_file} DEPENDS ${file_absolute} |