mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 03:29:18 -05:00
2ce08e5489
Fixes: #20295
17 lines
299 B
CMake
17 lines
299 B
CMake
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)
|