diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2019-09-19 21:56:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-09-23 15:13:13 (GMT) |
commit | acb9511044a230126289c1e99cfed134c3be3c52 (patch) | |
tree | 4beb957a681b2baa9095c4f18f0254fbb29555d9 /Tests/RunCMake/PrecompileHeaders/include/foo2.h | |
parent | ebb9346490741ddc2ce6f552bc1be57dfc730cfa (diff) | |
download | CMake-acb9511044a230126289c1e99cfed134c3be3c52.zip CMake-acb9511044a230126289c1e99cfed134c3be3c52.tar.gz CMake-acb9511044a230126289c1e99cfed134c3be3c52.tar.bz2 |
Precompile headers: Treat headers as relative to current source directory
Teach `target_precompile_headers` to treat relative paths the
same way as `target_sources`.
Fixes: #19733
Diffstat (limited to 'Tests/RunCMake/PrecompileHeaders/include/foo2.h')
-rw-r--r-- | Tests/RunCMake/PrecompileHeaders/include/foo2.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/PrecompileHeaders/include/foo2.h b/Tests/RunCMake/PrecompileHeaders/include/foo2.h new file mode 100644 index 0000000..4bf9c81 --- /dev/null +++ b/Tests/RunCMake/PrecompileHeaders/include/foo2.h @@ -0,0 +1,6 @@ +#ifndef foo2_h +#define foo2_h + +int foo2(void); + +#endif |