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/DisabledPch.cmake | |
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/DisabledPch.cmake')
-rw-r--r-- | Tests/RunCMake/PrecompileHeaders/DisabledPch.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/PrecompileHeaders/DisabledPch.cmake b/Tests/RunCMake/PrecompileHeaders/DisabledPch.cmake index ee47980..59ee14b 100644 --- a/Tests/RunCMake/PrecompileHeaders/DisabledPch.cmake +++ b/Tests/RunCMake/PrecompileHeaders/DisabledPch.cmake @@ -4,7 +4,7 @@ project(DisabledPch C) add_library(foo foo.c) target_include_directories(foo PUBLIC include) target_precompile_headers(foo PUBLIC - foo.h + include/foo.h <stdio.h> \"string.h\" ) |