summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/PrecompileHeaders/foobar.c
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-09-19 21:56:31 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-23 15:13:13 (GMT)
commitacb9511044a230126289c1e99cfed134c3be3c52 (patch)
tree4beb957a681b2baa9095c4f18f0254fbb29555d9 /Tests/RunCMake/PrecompileHeaders/foobar.c
parentebb9346490741ddc2ce6f552bc1be57dfc730cfa (diff)
downloadCMake-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/foobar.c')
-rw-r--r--Tests/RunCMake/PrecompileHeaders/foobar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/PrecompileHeaders/foobar.c b/Tests/RunCMake/PrecompileHeaders/foobar.c
index 6dbf8ce..7a135ea 100644
--- a/Tests/RunCMake/PrecompileHeaders/foobar.c
+++ b/Tests/RunCMake/PrecompileHeaders/foobar.c
@@ -1,7 +1,8 @@
#include "bar.h"
#include "foo.h"
+#include "foo2.h"
int main()
{
- return foo() + bar();
+ return foo() + foo2() + bar();
}