# On Windows CHECK\_CXX\_SOURCE\_RUNS is calling check\_source\_runs

**URL:** https://discourse.cmake.org/t/on-windows-check-cxx-source-runs-is-calling-check-source-runs/2065
**Category:** Code
**Tags:** os:windows
**Created:** [October 24, 2020, 12:30pm UTC](https://discourse.cmake.org/t/on-windows-check-cxx-source-runs-is-calling-check-source-runs/2065 "2020-10-24T12:30:28Z")
**Posts on this page:** 1
**Showing post:** 5

<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:24pm UTC](https://discourse.cmake.org/t/on-windows-check-cxx-source-runs-is-calling-check-source-runs/2065/5 "2020-10-24T22:24:43Z")

</div>

You are using different CMake versions on the two different platforms. The 3.19 release is the first one where `check_cxx_source_runs()` forwards to `check_source_runs()`. This is why you are not seeing your `check_source_runs()` macro being invoked on Linux, since you are only running 3.14 there. I [posted just yesterday](https://discourse.cmake.org/t/cleaning-up-check-lang-sourcecompiles-module-docs/2063) about updating the 3.19 docs for these modules, which I suspect would make situations like this a bit clearer.

---

_[View the full topic](https://discourse.cmake.org/t/on-windows-check-cxx-source-runs-is-calling-check-source-runs/2065)._
