mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Prior to commit 243462fafe (try_compile: Tolerate compile features from
non-enabled languages, 2026-05-18, v4.4.0-rc1~84^2) we accidentally
tolerated toolchain files setting `CMAKE_<LANG>_COMPILER_LOADED`.
Meson accidentally relied on this, so restore toleration of it.
Fixes: #27971
6 lines
200 B
CMake
6 lines
200 B
CMake
enable_language(C)
|
|
try_compile(SHOULD_PASS SOURCE_FROM_CONTENT "main.c" "int main(void) { return 0; }")
|
|
if(NOT SHOULD_PASS)
|
|
message(FATAL_ERROR "try_compile failed but should have passed!")
|
|
endif()
|