summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2022-07-12 11:13:00 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2022-08-10 20:00:35 +0200
commitd2edee615214a5b6304150159814fa1c40e924b8 (patch)
tree7458e7c5032e2139011a12039ea9267558f7c48a /cmake
parenta29af6656f1c33355c4cbfe8587b8f6eae691a21 (diff)
Add the output of qlalr to the consuming target source files
The qlalr outputs need to be added to the consuming target. Change-Id: I9600729103298cf7e0a712d5f3dc49c5f4c729f5 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtLalrHelpers.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmake/QtLalrHelpers.cmake b/cmake/QtLalrHelpers.cmake
index 68af8b1578..f67bbc489f 100644
--- a/cmake/QtLalrHelpers.cmake
+++ b/cmake/QtLalrHelpers.cmake
@@ -52,8 +52,8 @@ function(qt_process_qlalr consuming_target input_file_list flags)
"${absolute_input_file}")
set(cpp_file "${parser}.cpp")
- set(private_file "${parser}_p.h")
- set(decl_file "${decl}")
+ set(private_file "${CMAKE_CURRENT_BINARY_DIR}/${parser}_p.h")
+ set(decl_file "${CMAKE_CURRENT_BINARY_DIR}/${decl}")
set(impl_file "${impl}")
add_custom_command(
OUTPUT ${cpp_file} ${private_file} ${decl_file} ${impl_file}
@@ -62,6 +62,7 @@ function(qt_process_qlalr consuming_target input_file_list flags)
MAIN_DEPENDENCY ${input_file}
VERBATIM
)
- target_sources(${consuming_target} PRIVATE ${cpp_file} ${impl_file})
+ target_sources(${consuming_target} PRIVATE ${cpp_file} ${impl_file}
+ ${private_file} ${decl_file})
endforeach()
endfunction()