mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
375e6fdbbe
Based on work done by @ben.boeckel (!8051) Fixes: #22217
24 lines
274 B
CMake
24 lines
274 B
CMake
|
|
file(WRITE "${RunCMake_TEST_BINARY_DIR}/lib_depends.c" [[
|
|
|
|
extern void external(void);
|
|
|
|
void lib_depends(void)
|
|
{
|
|
external();
|
|
}
|
|
]])
|
|
|
|
|
|
file(WRITE "${RunCMake_TEST_BINARY_DIR}/exe_depends.c" [[
|
|
|
|
extern void external(void);
|
|
|
|
int main(void)
|
|
{
|
|
external();
|
|
|
|
return 0;
|
|
}
|
|
]])
|