summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:19:53 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:19:53 +0900
commit2b122af3955c974531d52d21bf1031edc5ea4970 (patch)
tree71da1fb127f0f7f64f75e08d4f98cfa6be5bf6a5 /Tests
parent8b67c673914c98a96faeb99585662a5d12ae54df (diff)
downloadcmake-2b122af3955c974531d52d21bf1031edc5ea4970.tar.gz
cmake-2b122af3955c974531d52d21bf1031edc5ea4970.tar.bz2
cmake-2b122af3955c974531d52d21bf1031edc5ea4970.zip
Imported Upstream version 3.16.8upstream/3.16.8
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/PrecompileHeaders/PchReuseFrom.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/Tests/RunCMake/PrecompileHeaders/PchReuseFrom.cmake b/Tests/RunCMake/PrecompileHeaders/PchReuseFrom.cmake
index 03a97eda4..f8fba441a 100644
--- a/Tests/RunCMake/PrecompileHeaders/PchReuseFrom.cmake
+++ b/Tests/RunCMake/PrecompileHeaders/PchReuseFrom.cmake
@@ -5,6 +5,11 @@ if(CMAKE_C_COMPILE_OPTIONS_USE_PCH)
add_definitions(-DHAVE_PCH_SUPPORT)
endif()
+# Add this before the target from which we will reuse the PCH
+# to test that generators can handle reversed ordering.
+add_library(foo foo.c)
+target_include_directories(foo PUBLIC include)
+
add_library(empty empty.c)
target_precompile_headers(empty PRIVATE
<stdio.h>
@@ -12,8 +17,6 @@ target_precompile_headers(empty PRIVATE
)
target_include_directories(empty PUBLIC include)
-add_library(foo foo.c)
-target_include_directories(foo PUBLIC include)
target_precompile_headers(foo REUSE_FROM empty)
# should not cause problems if configured multiple times