summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-05-14 21:24:41 (GMT)
committerBrad King <brad.king@kitware.com>2023-05-18 12:34:31 (GMT)
commit69e452524129552e4891feb7949c4af1567a525f (patch)
tree6cd58a5277f1712be707d94989caceb3e7ef3c92 /Tests/RunCMake/CXXModules/RunCMakeTest.cmake
parent18f87c87f86473dd2106b6d8ab7acc9def99b9b1 (diff)
downloadCMake-69e452524129552e4891feb7949c4af1567a525f.zip
CMake-69e452524129552e4891feb7949c4af1567a525f.tar.gz
CMake-69e452524129552e4891feb7949c4af1567a525f.tar.bz2
Tests/CXXModules: add example for private modules between targets
Adapted from the example in issue #24652 by Ivan Garramona.
Diffstat (limited to 'Tests/RunCMake/CXXModules/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/CXXModules/RunCMakeTest.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/CXXModules/RunCMakeTest.cmake b/Tests/RunCMake/CXXModules/RunCMakeTest.cmake
index c1129ca..b088724 100644
--- a/Tests/RunCMake/CXXModules/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CXXModules/RunCMakeTest.cmake
@@ -155,6 +155,9 @@ endif ()
# Tests which require collation work.
if ("collation" IN_LIST CMake_TEST_MODULE_COMPILATION)
run_cxx_module_test(public-req-private)
+ set(RunCMake_CXXModules_NO_TEST 1)
+ run_cxx_module_test(req-private-other-target)
+ unset(RunCMake_CXXModules_NO_TEST)
endif ()
# Tests which use named modules in shared libraries.