BSD: Set CMAKE_HOST_BSD variable on a BSD host

Also the BSD variable will be set in CMake scripting mode (-P).

Relates: #23853
5 files changed