From aa95ff10df84b4bd59847a6dc3dfcb103cae89ba Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sun, 1 Mar 2020 17:03:12 +0000 Subject: [PATCH] Add build dependency on pcbcommon in qa test The qa_pcbnew_util needs the pcb_lexer header that is generated as part of pcbcommon, so it must be built after pcbcommon. --- qa/pcbnew_utils/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qa/pcbnew_utils/CMakeLists.txt b/qa/pcbnew_utils/CMakeLists.txt index dd9aeb6d79..a2460008df 100644 --- a/qa/pcbnew_utils/CMakeLists.txt +++ b/qa/pcbnew_utils/CMakeLists.txt @@ -53,6 +53,10 @@ target_include_directories( qa_pcbnew_utils PUBLIC ${INC_AFTER} ) +add_dependencies( qa_pcbnew_utils + pcbcommon +) + target_link_libraries( qa_pcbnew_utils PUBLIC qa_utils ) @@ -79,4 +83,4 @@ target_link_libraries( qa_pcbnew_utils PUBLIC # # we need to pretend to be something to appease the units code target_compile_definitions( qa_pcbnew_utils PUBLIC PCBNEW -) \ No newline at end of file +)