summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/FreeBSD-Initialize.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-06-06 19:36:54 (GMT)
committerBrad King <brad.king@kitware.com>2023-06-07 11:02:20 (GMT)
commit1373373823ccaf8378a19a95685337061d79d5b1 (patch)
tree882877cbe65068d3df0eadbd75a74fdd52a0d87c /Modules/Platform/FreeBSD-Initialize.cmake
parent1d916bf3d2dad26682ed73c6cbed88babe28af7b (diff)
downloadCMake-1373373823ccaf8378a19a95685337061d79d5b1.zip
CMake-1373373823ccaf8378a19a95685337061d79d5b1.tar.gz
CMake-1373373823ccaf8378a19a95685337061d79d5b1.tar.bz2
enable_language: Establish target platform identification variables earlier
Set target platform identification variables like `APPLE` and `LINUX` as soon as the target system is identified. This makes them available during toolchain and binutils selection. Fixes: #23333
Diffstat (limited to 'Modules/Platform/FreeBSD-Initialize.cmake')
-rw-r--r--Modules/Platform/FreeBSD-Initialize.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/FreeBSD-Initialize.cmake b/Modules/Platform/FreeBSD-Initialize.cmake
new file mode 100644
index 0000000..8c62a04
--- /dev/null
+++ b/Modules/Platform/FreeBSD-Initialize.cmake
@@ -0,0 +1,2 @@
+set(BSD "FreeBSD")
+set(UNIX 1)