CMake 3.19 RC1 CHECK_CXX_SOURCE_RUNS is calling my user defined check_source_runs macro
The following user code is now broken in 3.19 rc1 due to the implicit inclusion of CheckSourceRuns
cmake_minimum_required(VERSION 3.0)
project(test)
include(CheckCXXSourceRuns)
macro( check_source_runs )
message(FATAL_ERROR "The check_source_runs macro is being called by CHECK_CXX_SOURCE_RUNS")
encmacro( check_source_runs )
set(source_code "
int main(void)
{ return 0;
}")
CHECK_CXX_SOURCE_RUNS( "${source_code}" flag )
originall posted at: https://discourse.cmake.org/t/on-windows-check-cxx-source-runs-is-calling-check-source-runs/2065