cxx-modules-rules.cmake 618 B

123456789101112131415161718
  1. set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "a816ed09-43d1-40e5-bc8c-1a2824ee194e")
  2. if (NOT EXISTS "${CMake_TEST_MODULE_COMPILATION_RULES}")
  3. message(FATAL_ERROR
  4. "The `CMake_TEST_MODULE_COMPILATION_RULES` file must be specified "
  5. "for these tests to operate.")
  6. endif ()
  7. include("${CMake_TEST_MODULE_COMPILATION_RULES}")
  8. if (NOT CMake_TEST_CXXModules_UUID STREQUAL "a246741c-d067-4019-a8fb-3d16b0c9d1d3")
  9. message(FATAL_ERROR
  10. "The compilation rule file needs updated for changes in the test "
  11. "suite. Please see the history for what needs to be updated.")
  12. endif ()
  13. include(CTest)
  14. enable_testing()