Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Tests/CMakeCommands/target_link_libraries/compile_only.cpp
3153 views
1
2
#ifndef USE_EXAMPLE
3
# error "Missing propagated define"
4
#endif
5
6
#ifdef HAVE_FUNCTION
7
int non_duplicate_function()
8
{
9
return 42;
10
}
11
#endif
12
13
// Solaris needs non-empty content so ensure
14
// we have at least one symbol
15
int Solaris_requires_a_symbol_here = 0;
16
17