Files
CMake/Tests/ExportImport/Export/testLib2.c
Robert Maynard c42630ee62 cmGeneratorExpressionNode: implement COMPILE_ONLY genex
This generator expression is the inverse of `LINK_ONLY` and only coveys
usage requirements for the purposes of compilation. Its intended use is
to avoid needing to export targets that do not have link usage
requirements (e.g., header-only libraries) when used by another target.

See: #15415
2023-05-04 09:39:06 -04:00

12 lines
165 B
C

#ifndef FROM_compileOnly
# error "Usage requirements from `compileOnly` not found"
#endif
extern int testLib1(void);
int testLib2(void)
{
return testLib1();
}