cmake-buildsystem(7): link-dependent genex loop example not accurate
The example here is intended to show a case in which CMake diagnoses a cycle while evaluating link libraries and generator expressions.
However, the example in the manual actually fails with:
CMake Error at CMakeLists.txt:... (target_link_libraries):
Error evaluating generator expression:
$<$<TARGET_PROPERTY:POSITION_INDEPENDENT_CODE>:lib2>
Expression did not evaluate to a known generator expression
After converting the expression to $<$<BOOL:$<TARGET_PROPERTY:POSITION_INDEPENDENT_CODE>>:lib2>
, running CMake succeeds and a buildsystem is generated. AFAICT this behavior goes back to CMake 3.0 when this documentation was added.