From dfe5c8d61c935c8b7c2c344e4f0cc099a3a573ae Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Mon, 23 Feb 2026 23:32:13 +0300 Subject: [PATCH] Use PCH in "gal". --- common/gal/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/common/gal/CMakeLists.txt b/common/gal/CMakeLists.txt index 42527f3595..19537f46b7 100644 --- a/common/gal/CMakeLists.txt +++ b/common/gal/CMakeLists.txt @@ -55,6 +55,17 @@ set( GAL_SRCS add_library( gal SHARED ${GAL_SRCS} ) +if( KICAD_USE_PCH ) + target_precompile_headers( gal + PRIVATE + + + + + + ) +endif() + if( WIN32 ) # we need the gdiplus library for cairo printing on windows set( GDI_PLUS_LIBRARIES gdiplus )