mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
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
10 lines
179 B
CMake
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; }
|
|
]])
|