Files
CMake/Tests/RunCMake/CompilerTest/C.cmake
Matthew Woehlke f891a75d5c Tests: Test CMakeTest*Compiler.cmake fallbacks
Add tests that explicitly test the fallback tests of the modules which
test for a functional [Obj]C[xx] compiler, bypassing the ABI tests.
Due to the ABI test short-circuiting added by commit 1d21dd0f7c
(enable_language: Assume compiler works if ABI detection compiles,
2020-05-25, v3.18.0-rc1~93^2), this logic is likely not getting tested
otherwise.
2022-09-28 10:27:31 -04:00

4 lines
127 B
CMake

# Pretend the ABI check failed in order to force the fall-back test to run.
set(CMAKE_C_ABI_COMPILED FALSE)
enable_language(C)