summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/PrecompileHeaders
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-11 12:06:20 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-11 12:06:20 (GMT)
commit0512e94eb028e6c2ebbc2a3d50e82df1970fa05a (patch)
treea63b7017f4c9c7db97743e20ab31ef194a3a697e /Tests/RunCMake/PrecompileHeaders
parent60b10d4fad26c0cd877d06ebcca9f5f583d1275d (diff)
downloadCMake-0512e94eb028e6c2ebbc2a3d50e82df1970fa05a.zip
CMake-0512e94eb028e6c2ebbc2a3d50e82df1970fa05a.tar.gz
CMake-0512e94eb028e6c2ebbc2a3d50e82df1970fa05a.tar.bz2
Tests: Fix PchInstantiateTemplates case on macOS with CMAKE_OSX_ARCHITECTURES
Update the test added by commit 8c8f03422e (PCH: Template instantiation support, 2020-08-28) to recognize flags on PCH files whose names include the architecture. This occurs when `CMAKE_OSX_ARCHITECTURES` is set.
Diffstat (limited to 'Tests/RunCMake/PrecompileHeaders')
-rw-r--r--Tests/RunCMake/PrecompileHeaders/PchInstantiateTemplates-check.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/PrecompileHeaders/PchInstantiateTemplates-check.cmake b/Tests/RunCMake/PrecompileHeaders/PchInstantiateTemplates-check.cmake
index 648d387..81449ca 100644
--- a/Tests/RunCMake/PrecompileHeaders/PchInstantiateTemplates-check.cmake
+++ b/Tests/RunCMake/PrecompileHeaders/PchInstantiateTemplates-check.cmake
@@ -1,7 +1,7 @@
file(STRINGS ${RunCMake_TEST_BINARY_DIR}/compile_commands.json empty_dir_commands
- REGEX "command.*-fpch-instantiate-templates.*empty.dir/cmake_pch.h")
+ REGEX "command.*-fpch-instantiate-templates.*empty.dir/cmake_pch[A-Za-z0-9_.]*.h")
file(STRINGS ${RunCMake_TEST_BINARY_DIR}/compile_commands.json foo_dir_commands
- REGEX "command.*-fpch-instantiate-templates.*foo.dir/cmake_pch.h")
+ REGEX "command.*-fpch-instantiate-templates.*foo.dir/cmake_pch[A-Za-z0-9_.]*.h")
list(LENGTH empty_dir_commands empty_dir_commands_size)
list(LENGTH foo_dir_commands foo_dir_commands_size)