BSD: Set CMAKE_HOST_BSD variable on a BSD host

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

Relates: #23853
This commit is contained in:
Cristian Adam
2022-09-06 01:15:44 +02:00
parent 288f72efea
commit 1ea8b8ed86
5 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
CMAKE_HOST_BSD
--------------
.. versionadded:: 3.25
Set to a string value when the host system is BSD. This value can be one of
the following: DragonFlyBSD, FreeBSD, OpenBSD, or NetBSD.