diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-05-14 21:24:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-18 12:34:31 (GMT) |
commit | 69e452524129552e4891feb7949c4af1567a525f (patch) | |
tree | 6cd58a5277f1712be707d94989caceb3e7ef3c92 /Tests/RunCMake/CXXModules/RunCMakeTest.cmake | |
parent | 18f87c87f86473dd2106b6d8ab7acc9def99b9b1 (diff) | |
download | CMake-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.cmake | 3 |
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. |