diff options
author | Brad King <brad.king@kitware.com> | 2019-10-16 14:32:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-16 14:32:56 (GMT) |
commit | ac75886525c647ef7081dc11f6c0c128463b7ecd (patch) | |
tree | d34cfd6a5d869bc0674bd2252a165ccb610a8702 /Tests/RunCMake/PrecompileHeaders/PchMultilanguage.cmake | |
parent | 9150c818b7d2afb868575fcb2e0c9ba62b9d7f85 (diff) | |
download | CMake-ac75886525c647ef7081dc11f6c0c128463b7ecd.zip CMake-ac75886525c647ef7081dc11f6c0c128463b7ecd.tar.gz CMake-ac75886525c647ef7081dc11f6c0c128463b7ecd.tar.bz2 |
PCH: Document and test COMPILE_LANGUAGE genex for per-language header
Fixes: #19839
Diffstat (limited to 'Tests/RunCMake/PrecompileHeaders/PchMultilanguage.cmake')
-rw-r--r-- | Tests/RunCMake/PrecompileHeaders/PchMultilanguage.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/RunCMake/PrecompileHeaders/PchMultilanguage.cmake b/Tests/RunCMake/PrecompileHeaders/PchMultilanguage.cmake index 7a837da..cdc42b2 100644 --- a/Tests/RunCMake/PrecompileHeaders/PchMultilanguage.cmake +++ b/Tests/RunCMake/PrecompileHeaders/PchMultilanguage.cmake @@ -6,4 +6,7 @@ add_executable(foobar main.cpp ) target_include_directories(foobar PUBLIC include) -target_precompile_headers(foobar PRIVATE "<stddef.h>") +target_precompile_headers(foobar PRIVATE + "$<$<COMPILE_LANGUAGE:C>:<stddef.h$<ANGLE-R>>" + "$<$<COMPILE_LANGUAGE:CXX>:<cstddef$<ANGLE-R>>" + ) |