mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -06:00
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
12 lines
165 B
C
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();
|
|
}
|