diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-09-21 21:47:24 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-10-02 14:17:31 (GMT) |
commit | 5eb7bd641a909925c6341819bc7900300776924f (patch) | |
tree | 595e3c92d99fa8f0dabe363b95bfc8ecc0db5350 /Tests | |
parent | ff18acc3018002fc29c24d7f60485800534ab592 (diff) | |
download | CMake-5eb7bd641a909925c6341819bc7900300776924f.zip CMake-5eb7bd641a909925c6341819bc7900300776924f.tar.gz CMake-5eb7bd641a909925c6341819bc7900300776924f.tar.bz2 |
Tests/RunCMake/CXXModules: remove rules file requirement
Only Clang needs to disable extensions in order to work; other
implementations work as-is.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/CXXModules/examples/cxx-modules-rules.cmake | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Tests/RunCMake/CXXModules/examples/cxx-modules-rules.cmake b/Tests/RunCMake/CXXModules/examples/cxx-modules-rules.cmake index da3c215..1016afd 100644 --- a/Tests/RunCMake/CXXModules/examples/cxx-modules-rules.cmake +++ b/Tests/RunCMake/CXXModules/examples/cxx-modules-rules.cmake @@ -1,15 +1,5 @@ -if (NOT EXISTS "${CMake_TEST_MODULE_COMPILATION_RULES}") - message(FATAL_ERROR - "The `CMake_TEST_MODULE_COMPILATION_RULES` file must be specified " - "for these tests to operate.") -endif () - -include("${CMake_TEST_MODULE_COMPILATION_RULES}") - -if (NOT CMake_TEST_CXXModules_UUID STREQUAL "a246741c-d067-4019-a8fb-3d16b0c9d1d3") - message(FATAL_ERROR - "The compilation rule file needs updated for changes in the test " - "suite. Please see the history for what needs to be updated.") +if (CMake_TEST_MODULE_COMPILATION_RULES) + include("${CMake_TEST_MODULE_COMPILATION_RULES}") endif () include(CTest) |