fix(cmake): correct AUTHOR_WARNING calls and the VIRTUAL_ENV check (#6240) * fix(cmake): correct AUTHOR_WARNING calls and the VIRTUAL_ENV check * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>