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
This commit is contained in:
Brad King
2023-06-06 15:36:54 -04:00
parent 1d916bf3d2
commit 1373373823
67 changed files with 85 additions and 64 deletions
@@ -0,0 +1,4 @@
# CrayLinuxEnvironment: loaded by users cross-compiling on a Cray front-end
# node by specifying "-DCMAKE_SYSTEM_NAME=CrayLinuxEnvironment" to cmake
set(UNIX 1)