# Cleaning up Check\<Lang\>SourceCompiles module docs

**URL:** https://discourse.cmake.org/t/cleaning-up-check-lang-sourcecompiles-module-docs/2063
**Category:** Development
**Created:** [October 24, 2020, 10:50am UTC](https://discourse.cmake.org/t/cleaning-up-check-lang-sourcecompiles-module-docs/2063 "2020-10-24T10:50:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [October 24, 2020, 10:50am UTC](https://discourse.cmake.org/t/cleaning-up-check-lang-sourcecompiles-module-docs/2063/1 "2020-10-24T10:50:23Z")

</div>

The CMake 3.19 release includes a new `CheckSourceCompiles` module which replaces the individual `Check<Lang>SourceCompiles` modules. Indeed, those modules now simply forward to the new one. The old modules still have all the documentation though and this is likely to get out of date over time. Should we strip down the old docs to simply say the module is deprecated and that its associated command now just forwards to the new module’s one?

Cc: @robert.maynard

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [October 24, 2020, 10:54am UTC](https://discourse.cmake.org/t/cleaning-up-check-lang-sourcecompiles-module-docs/2063/2 "2020-10-24T10:54:53Z")

</div>

The `CheckLinkerFlag` module also still refers to the old `Check<Lang>SourceCompiles` modules instead of the new `CheckSourceCompiles` module. I will update its docs to refer to the new module instead (I’m making a pass through all the docs new for the 3.19 release and expect to put up a merge request for those changes tomorrow).

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [October 24, 2020, 11:09am UTC](https://discourse.cmake.org/t/cleaning-up-check-lang-sourcecompiles-module-docs/2063/3 "2020-10-24T11:09:23Z")

</div>

And looks like we have the same situation for the new `CheckCompilerFlag` module replacing the existing `Check<Lang>CompilerFlag` modules too. And `CheckSourceRuns` replacing `Check<Lang>SourceRuns`. So same question, should we strip down the old module docs for those too?
