blob: 3aebbe0c0157c54c8ca7f95f40b89ebead3386a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
enable_language(C)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_library(empty empty.c)
target_precompile_headers(empty PUBLIC
<stdio.h>
<string.h>
)
add_library(foo foo.c)
target_precompile_headers(foo PUBLIC
<stdio.h>
<string.h>
)
set_target_properties(foo PROPERTIES PCH_INSTANTIATE_TEMPLATES OFF)
|