mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 11:50:11 -05:00
e84fcbcb0b
These patches now support the `-MF` output, so remove the `none` support added just for the old patchset which did not use it. Also update the flag name to `-fmodule-output=`. Due to the new Clang module mapper flag, use a new experimental support UUID as well.
19 lines
618 B
CMake
19 lines
618 B
CMake
set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "2182bf5c-ef0d-489a-91da-49dbc3090d2a")
|
|
|
|
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.")
|
|
endif ()
|
|
|
|
include(CTest)
|
|
enable_testing()
|