diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index 35d572f9d6..9b646df111 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -764,6 +764,9 @@ add_library( pcbnew_kiface_objects OBJECT ${PCBNEW_SCRIPTING_SRCS} ) +# pcbnew depends on make_lexer outputs in common +add_dependencies( pcbnew_kiface_objects pcbcommon ) + if( KICAD_USE_PCH AND CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) target_precompile_headers( pcbnew_kiface_objects PRIVATE