summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/PrecompileHeaders/PchWarnInvalid.cmake
blob: 4525664afc480e4bfe3f1c6a52709bbde8a3d0a9 (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_WARN_INVALID OFF)