summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/PrecompileHeaders/PchMultilanguage-check.cmake
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2020-01-10 16:05:27 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2020-01-17 22:17:35 (GMT)
commita55df20499fe9329269efccc8552f26029ae4a0e (patch)
tree7496ccc84d7be98249c45ae4ea6309d5b8b2dc85 /Tests/RunCMake/PrecompileHeaders/PchMultilanguage-check.cmake
parent1e728706de1457a25fe531d5905c28570a208a08 (diff)
downloadCMake-a55df20499fe9329269efccc8552f26029ae4a0e.zip
CMake-a55df20499fe9329269efccc8552f26029ae4a0e.tar.gz
CMake-a55df20499fe9329269efccc8552f26029ae4a0e.tar.bz2
Multi-Ninja: Add precompile headers support
Fixes: #19789
Diffstat (limited to 'Tests/RunCMake/PrecompileHeaders/PchMultilanguage-check.cmake')
-rw-r--r--Tests/RunCMake/PrecompileHeaders/PchMultilanguage-check.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/PrecompileHeaders/PchMultilanguage-check.cmake b/Tests/RunCMake/PrecompileHeaders/PchMultilanguage-check.cmake
index cc01ecb..1696037 100644
--- a/Tests/RunCMake/PrecompileHeaders/PchMultilanguage-check.cmake
+++ b/Tests/RunCMake/PrecompileHeaders/PchMultilanguage-check.cmake
@@ -1,5 +1,9 @@
set(foobar_pch_h_header "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/foobar.dir/cmake_pch.h")
set(foobar_pch_hxx_header "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/foobar.dir/cmake_pch.hxx")
+if (RunCMake_GENERATOR_IS_MULTI_CONFIG)
+ set(foobar_pch_h_header "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/foobar.dir/Debug/cmake_pch.h")
+ set(foobar_pch_hxx_header "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/foobar.dir/Debug/cmake_pch.hxx")
+endif()
if (NOT EXISTS ${foobar_pch_h_header})
set(RunCMake_TEST_FAILED "Generated foobar C pch header ${foobar_pch_h_header} does not exist")