Files
CMake/Tests/RunCMake/BuildDepends/CompilerDependencies.step1.cmake
Marc Chevrier 2c71d051fa Makefiles Generators: use compiler for dependencies generation
Each source compilation generates a dependencies file. These dependencies
files are consolidated in one file per target. This consolidation is done
as part of command 'cmake -E cmake_depends` launched before evaluation of
makefile dependency graph.

The consolidation uses the same approach as `CMake` dependencies management.

Fixes: #21321
2020-11-29 15:25:42 +01:00

10 lines
179 B
CMake

file(WRITE "${RunCMake_TEST_BINARY_DIR}/main.h" [[
#define COUNT 1
]])
file(WRITE "${RunCMake_TEST_BINARY_DIR}/main.c" [[
#include "main.h"
int main(void) { return COUNT; }
]])