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 )