1 2 3 4 5 6 7 8 9 10 11 12 13 14
cc = meson.get_compiler('c') cc_id = cc.get_id() # PGI compiler only supports PCH for C++ if cc_id == 'pgi' subdir_done() endif exe = executable( 'prog', files('main.cc', 'func.c'), c_pch : ['pch/func.h'], cpp_pch : ['pch/main.h'], )