summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeSystemSpecificInformation.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/CMakeSystemSpecificInformation.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/CMakeSystemSpecificInformation.cmake')
-rw-r--r--Modules/CMakeSystemSpecificInformation.cmake13
1 files changed, 0 insertions, 13 deletions
diff --git a/Modules/CMakeSystemSpecificInformation.cmake b/Modules/CMakeSystemSpecificInformation.cmake
index b5dc8d3..70bcf5c 100644
--- a/Modules/CMakeSystemSpecificInformation.cmake
+++ b/Modules/CMakeSystemSpecificInformation.cmake
@@ -6,19 +6,6 @@
# It is included after the compiler has been determined, so
# we know things like the compiler name and if the compiler is gnu.
-# before cmake 2.6 these variables were set in cmMakefile.cxx. This is still
-# done to keep scripts and custom language and compiler modules working.
-# But they are reset here and set again in the platform files for the target
-# platform, so they can be used for testing the target platform instead
-# of testing the host platform.
-set(APPLE )
-set(UNIX )
-set(CYGWIN )
-set(MSYS )
-set(WIN32 )
-set(BSD )
-set(LINUX )
-
function(_cmake_record_install_prefix )
set(_CMAKE_SYSTEM_PREFIX_PATH_INSTALL_PREFIX_VALUE "${CMAKE_INSTALL_PREFIX}" PARENT_SCOPE)
set(_CMAKE_SYSTEM_PREFIX_PATH_STAGING_PREFIX_VALUE "${CMAKE_STAGING_PREFIX}" PARENT_SCOPE)