David Tenty
63195d3d7a
[NFC][CMake] quote ${CMAKE_SYSTEM_NAME} consistently ( #154537 )
...
A CMake change included in CMake 4.0 makes `AIX` into a variable
(similar to `APPLE`, etc.)
ff03db6657
However, `${CMAKE_SYSTEM_NAME}` unfortunately also expands exactly to
`AIX` and `if` auto-expands variable names in CMake. That means you get
a double expansion if you write:
`if (${CMAKE_SYSTEM_NAME} MATCHES "AIX")`
which becomes:
`if (AIX MATCHES "AIX")`
which is as if you wrote:
`if (ON MATCHES "AIX")`
You can prevent this by quoting the expansion of "${CMAKE_SYSTEM_NAME}",
due to policy
[CMP0054](https://cmake.org/cmake/help/latest/policy/CMP0054.html#policy:CMP0054 )
which is on by default in 4.0+. Most of the LLVM CMake already does
this, but this PR fixes the remaining cases where we do not.
2025-08-20 12:45:41 -04:00
..
2025-07-23 12:14:51 +01:00
2025-07-26 10:04:04 -07:00
2025-01-16 12:27:54 -06:00
2025-04-22 09:45:15 +01:00
2025-07-29 08:19:09 -07:00
2025-08-01 18:16:07 -07:00
2025-04-07 17:12:50 +01:00
2025-06-12 11:51:58 +01:00
2025-08-15 10:33:08 +02:00
2025-03-03 13:46:33 +07:00
2025-06-02 23:27:38 -07:00
2025-08-20 06:15:04 -07:00
2025-04-26 18:18:09 -07:00
2025-07-08 09:56:57 -05:00
2025-03-05 07:22:35 -08:00
2024-12-11 15:44:44 -08:00
2025-03-03 13:46:33 +07:00
2024-12-11 15:44:44 -08:00
2025-03-03 13:46:33 +07:00
2025-06-06 15:03:07 +01:00
2025-03-29 22:40:05 -07:00
2024-12-11 15:44:44 -08:00
2025-03-13 14:26:42 +01:00
2025-07-18 11:31:52 +01:00
2024-07-26 12:36:45 +05:30
2025-07-11 09:52:49 -07:00
2025-06-27 11:05:49 -07:00
2024-12-11 15:44:44 -08:00
2025-08-13 09:41:40 -07:00
2025-04-23 09:29:06 +01:00
2025-04-18 10:05:55 -07:00
2025-05-26 14:11:15 +05:30
2024-12-11 15:44:44 -08:00
2025-08-02 13:44:55 -07:00
2025-03-06 10:27:47 +01:00
2025-08-20 12:45:41 -04:00
2025-03-07 09:37:19 +01:00
2025-03-29 22:40:05 -07:00
2025-06-12 11:51:58 +01:00
2025-03-29 22:40:05 -07:00
2025-06-24 15:01:29 -07:00
2025-06-13 14:35:40 -07:00
2025-07-30 09:05:46 -07:00
2025-07-04 14:10:28 +08:00
2025-06-26 23:38:12 -07:00
2025-04-08 16:16:53 +02:00
2025-04-14 22:21:40 -07:00
2025-07-17 10:36:31 +02:00
2025-08-15 18:10:49 -05:00
2025-08-19 11:19:35 -05:00
2025-03-06 10:27:47 +01:00
2025-01-24 15:08:14 +01:00
2025-06-24 14:56:55 -07:00
2025-07-18 15:06:50 -07:00
2025-08-18 21:42:55 +00:00
2025-07-29 10:01:04 -07:00
2025-08-15 13:16:34 -07:00
2025-03-18 22:12:45 -07:00
2025-08-12 14:16:41 -07:00
2025-06-26 08:40:40 -07:00
2025-06-26 23:38:12 -07:00
2025-07-15 04:54:28 -04:00
2025-02-24 23:08:48 -08:00
2025-08-05 14:04:59 +00:00
2025-01-24 10:53:11 +00:00
2024-12-11 15:44:44 -08:00
2025-06-06 13:25:07 +01:00
2024-12-11 15:44:44 -08:00
2025-03-03 13:46:33 +07:00
2025-04-16 12:29:33 -07:00
2025-06-24 15:01:29 -07:00
2025-07-31 14:11:06 -07:00
2025-08-15 09:07:25 +08:00
2025-04-02 11:52:41 +02:00
2025-03-03 13:46:33 +07:00
2025-06-12 09:27:27 +08:00
2025-07-28 12:34:30 -04:00
2025-06-24 00:10:22 -07:00
2024-04-15 11:53:15 -07:00
2025-07-08 08:49:17 -07:00
2025-04-02 19:26:19 -05:00