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-31 09:30:05 -07:00
2025-07-15 22:42:27 +04:00
2025-08-20 08:32:18 -07:00
2025-08-20 08:32:18 -07:00
2025-07-24 10:38:36 +01:00
2025-03-10 09:48:40 +00:00
2025-05-21 13:19:09 -07:00
2025-08-14 04:39:50 +00:00
2025-08-17 23:46:20 -07:00
2024-08-02 18:37:05 +02:00
2025-01-28 09:53:45 +00:00
2025-06-13 07:00:36 -04:00
2025-08-04 09:27:01 +08:00
2024-02-27 14:13:00 -05:00
2025-04-22 09:45:15 +01:00
2025-05-12 12:13:52 -07:00
2025-08-20 12:45:41 -04:00
2024-06-10 11:28:44 -07:00
2025-07-24 11:03:58 -07:00
2024-11-25 08:59:17 +08:00
2025-05-15 18:16:05 +02:00
2025-06-04 12:30:52 -07:00
2025-03-10 09:48:40 +00:00
2025-05-24 14:47:56 -07:00
2025-07-08 08:47:04 +02:00
2025-07-28 18:10:36 +02:00
2025-06-06 10:54:07 -07:00
2024-08-18 09:46:51 -07:00
2024-07-07 22:32:14 -07:00
2025-08-15 21:33:44 -04:00
2025-05-14 13:48:45 -07:00
2025-06-09 22:19:37 +03:00
2025-03-10 09:48:40 +00:00
2025-06-04 12:30:52 -07:00
2025-01-15 09:53:21 -08:00
2025-05-05 12:10:03 +02:00
2025-07-09 11:19:21 -07:00
2025-07-31 09:57:13 -04:00
2025-05-16 06:40:45 -07:00
2025-05-07 17:37:38 -07:00
2024-12-02 14:31:24 +01:00
2024-10-16 15:53:52 -07:00
2025-04-26 18:18:09 -07:00
2025-03-10 09:48:40 +00:00
2024-03-19 16:22:30 -05:00
2025-06-11 15:26:49 -04:00
2025-07-08 12:47:23 -07:00
2025-08-11 10:52:04 +02:00
2025-03-28 18:10:02 +01:00
2025-06-04 12:30:52 -07:00
2025-03-21 05:26:04 +03:00
2025-01-27 09:04:43 -08:00
2025-08-13 12:39:25 -07:00
2025-02-13 12:13:39 +01:00
2024-11-20 06:51:43 -08:00
2025-06-04 09:46:14 -07:00
2024-11-20 06:51:43 -08:00
2024-09-23 21:17:04 -07:00
2024-09-20 21:15:42 -07:00
2025-04-26 18:18:09 -07:00
2025-05-21 13:19:09 -07:00
2024-11-20 06:51:43 -08:00
2025-04-28 22:25:17 -07:00
2025-04-30 19:14:15 -07:00
2024-06-21 15:45:17 +02:00
2025-06-11 15:26:49 -04:00
2025-07-16 16:48:59 +01:00
2025-08-07 07:22:50 -07:00
2024-08-18 09:46:51 -07:00
2024-08-18 09:46:51 -07:00
2025-03-10 09:48:40 +00:00
2024-07-02 08:23:03 -07:00
2024-05-07 21:18:28 -07:00
2024-11-20 15:00:11 +00:00
2025-05-21 13:19:09 -07:00
2025-07-03 12:02:26 -07:00
2025-07-09 16:07:16 -07:00
2025-05-14 13:48:45 -07:00
2025-08-18 22:39:38 -07:00
2024-09-05 15:47:28 -07:00
2024-08-04 08:54:23 -07:00
2025-07-25 13:24:00 -04:00
2025-07-19 09:15:48 +09:00
2025-08-07 22:48:17 +05:00
2025-04-21 08:13:16 -07:00
2024-11-20 06:51:43 -08:00
2025-07-02 13:45:52 -04:00
2024-11-20 06:51:43 -08:00
2025-05-20 14:34:16 -07:00
2024-10-23 10:44:09 -07:00
2025-06-04 12:30:52 -07:00
2024-04-09 13:31:11 +08:00
2025-05-18 07:34:20 -07:00
2024-06-21 15:45:17 +02:00
2025-05-09 16:56:18 -07:00
2025-07-31 09:57:13 -04:00
2024-07-22 19:06:43 +02:00
2025-05-21 13:19:09 -07:00
2025-03-27 02:16:27 +08:00
2025-07-03 09:08:00 -05:00