Fix incorrect CMake if checks.
Docs: Fix boolean logic problem.