Imported Upstream version 3.25.0
[platform/upstream/cmake.git] / Tests / RunCMake / CXXModules / examples / cxx-modules-rules.cmake
1 set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "3c375311-a3c9-4396-a187-3227ef642046")
2
3 if (NOT EXISTS "${CMake_TEST_MODULE_COMPILATION_RULES}")
4   message(FATAL_ERROR
5     "The `CMake_TEST_MODULE_COMPILATION_RULES` file must be specified "
6     "for these tests to operate.")
7 endif ()
8
9 include("${CMake_TEST_MODULE_COMPILATION_RULES}")
10
11 if (NOT CMake_TEST_CXXModules_UUID STREQUAL "a246741c-d067-4019-a8fb-3d16b0c9d1d3")
12   message(FATAL_ERROR
13     "The compilation rule file needs updated for changes in the test "
14     "suite. Please see the history for what needs to be updated.")
15 endif ()
16
17 include(CTest)
18 enable_testing()