mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 04:10:05 -06:00
BSD: Only use BSD as variable for target BSD system
Instead of having multiple boolean variables, we only have one string variable: BSD with the name of the target BSD system. Relates: #23853
This commit is contained in:
@@ -324,8 +324,6 @@ Variables that Describe the System
|
|||||||
/variable/CMAKE_SYSTEM_PROCESSOR
|
/variable/CMAKE_SYSTEM_PROCESSOR
|
||||||
/variable/CMAKE_SYSTEM_VERSION
|
/variable/CMAKE_SYSTEM_VERSION
|
||||||
/variable/CYGWIN
|
/variable/CYGWIN
|
||||||
/variable/DRAGONFLYBSD
|
|
||||||
/variable/FREEBSD
|
|
||||||
/variable/GHSMULTI
|
/variable/GHSMULTI
|
||||||
/variable/IOS
|
/variable/IOS
|
||||||
/variable/LINUX
|
/variable/LINUX
|
||||||
@@ -344,8 +342,6 @@ Variables that Describe the System
|
|||||||
/variable/MSVC_TOOLSET_VERSION
|
/variable/MSVC_TOOLSET_VERSION
|
||||||
/variable/MSVC_VERSION
|
/variable/MSVC_VERSION
|
||||||
/variable/MSYS
|
/variable/MSYS
|
||||||
/variable/NETBSD
|
|
||||||
/variable/OPENBSD
|
|
||||||
/variable/UNIX
|
/variable/UNIX
|
||||||
/variable/WIN32
|
/variable/WIN32
|
||||||
/variable/WINCE
|
/variable/WINCE
|
||||||
|
|||||||
5
Help/release/dev/BSD.rst
Normal file
5
Help/release/dev/BSD.rst
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Variables
|
||||||
|
---------
|
||||||
|
|
||||||
|
* The :variable:`BSD` variable is set to a string value when the target system is BSD.
|
||||||
|
This value can be one of the following: DragonFlyBSD, FreeBSD, OpenBSD, or NetBSD.
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
bsd-variables
|
|
||||||
-------------
|
|
||||||
|
|
||||||
* The :variable:`BSD` variable is set to true when the target system
|
|
||||||
is BSD (DragonFlyBSD, FreeBSD, OpenBSD, or NetBSD)
|
|
||||||
* The :variable:`DRAGONFLYBSD` variable is set to true when the target system is DragonFlyBSD.
|
|
||||||
* The :variable:`FREEBSD` variable is set to true when the target system is FreeBSD.
|
|
||||||
* The :variable:`NETBSD` variable is set to true when the target system is NetBSD.
|
|
||||||
* The :variable:`OPENBSD` variable is set to true when the target system is OpenBSD.
|
|
||||||
@@ -3,4 +3,5 @@ BSD
|
|||||||
|
|
||||||
.. versionadded:: 3.25
|
.. versionadded:: 3.25
|
||||||
|
|
||||||
Set to true when the target system is BSD (DragonFlyBSD, FreeBSD, OpenBSD, or NetBSD)
|
Set to a string value when the target system is BSD. This value can be one of
|
||||||
|
the following: DragonFlyBSD, FreeBSD, OpenBSD, or NetBSD.
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
DRAGONFLYBSD
|
|
||||||
------------
|
|
||||||
|
|
||||||
.. versionadded:: 3.25
|
|
||||||
|
|
||||||
Set to true when the target system is DragonFlyBSD.
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
FREEBSD
|
|
||||||
-------
|
|
||||||
|
|
||||||
.. versionadded:: 3.25
|
|
||||||
|
|
||||||
Set to true when the target system is FreeBSD.
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
NETBSD
|
|
||||||
------
|
|
||||||
|
|
||||||
.. versionadded:: 3.25
|
|
||||||
|
|
||||||
Set to true when the target system is NetBSD.
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
OPENBSD
|
|
||||||
-------
|
|
||||||
|
|
||||||
.. versionadded:: 3.25
|
|
||||||
|
|
||||||
Set to true when the target system is OpenBSD.
|
|
||||||
@@ -3,8 +3,7 @@
|
|||||||
# see http://archive.netbsd.se/?ml=dfbsd-users&a=2007-07&m=4678361
|
# see http://archive.netbsd.se/?ml=dfbsd-users&a=2007-07&m=4678361
|
||||||
|
|
||||||
include(Platform/FreeBSD)
|
include(Platform/FreeBSD)
|
||||||
unset(FREEBSD)
|
set(BSD "DragonFlyBSD")
|
||||||
set(DRAGONFLYBSD 1)
|
|
||||||
|
|
||||||
# DragonFly BSD requires -z origin to enable $ORIGIN expansion in RPATH.
|
# DragonFly BSD requires -z origin to enable $ORIGIN expansion in RPATH.
|
||||||
# This is not required for FreeBSD since 10.2-RELEASE.
|
# This is not required for FreeBSD since 10.2-RELEASE.
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
set(FREEBSD 1)
|
set(BSD "FreeBSD")
|
||||||
set(BSD 1)
|
|
||||||
set(CMAKE_DL_LIBS "")
|
set(CMAKE_DL_LIBS "")
|
||||||
set(CMAKE_C_COMPILE_OPTIONS_PIC "-fPIC")
|
set(CMAKE_C_COMPILE_OPTIONS_PIC "-fPIC")
|
||||||
set(CMAKE_C_COMPILE_OPTIONS_PIE "-fPIE")
|
set(CMAKE_C_COMPILE_OPTIONS_PIE "-fPIE")
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
set(NETBSD 1)
|
set(BSD "NetBSD")
|
||||||
set(BSD 1)
|
|
||||||
set(CMAKE_DL_LIBS "")
|
set(CMAKE_DL_LIBS "")
|
||||||
set(CMAKE_C_COMPILE_OPTIONS_PIC "-fPIC")
|
set(CMAKE_C_COMPILE_OPTIONS_PIC "-fPIC")
|
||||||
set(CMAKE_C_COMPILE_OPTIONS_PIE "-fPIE")
|
set(CMAKE_C_COMPILE_OPTIONS_PIE "-fPIE")
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
include(Platform/NetBSD)
|
include(Platform/NetBSD)
|
||||||
unset(NETBSD)
|
set(BSD "OpenBSD")
|
||||||
set(OPENBSD 1)
|
|
||||||
|
|
||||||
# On OpenBSD, the compile time linker does not share it's configuration with
|
# On OpenBSD, the compile time linker does not share it's configuration with
|
||||||
# the runtime linker. This will extract the library search paths from the
|
# the runtime linker. This will extract the library search paths from the
|
||||||
|
|||||||
Reference in New Issue
Block a user