aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules/buildtools/MOLD.cmake
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2023-02-22 11:50:25 +1000
committerRechi <Rechi@users.noreply.github.com>2023-02-22 11:50:25 +1000
commitaece6a8b3c52cdd64f1aa6c58aa6be33efdabc29 (patch)
tree5da309d23c4cfbffcb58a871a4e2196fa29b34ce /cmake/modules/buildtools/MOLD.cmake
parent31fa7d1fce73ad47b8dc06d09e67aa459fbe4354 (diff)
[cmake] remove deprecated CMAKE_COMPILER_IS_GNUCXX
Diffstat (limited to 'cmake/modules/buildtools/MOLD.cmake')
-rw-r--r--cmake/modules/buildtools/MOLD.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/buildtools/MOLD.cmake b/cmake/modules/buildtools/MOLD.cmake
index cb29ed1e95..d1ac35b3d5 100644
--- a/cmake/modules/buildtools/MOLD.cmake
+++ b/cmake/modules/buildtools/MOLD.cmake
@@ -1,5 +1,5 @@
if(ENABLE_MOLD)
- if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12)
+ if(CMAKE_CXX_COMPILER_ID STREQUAL GNU AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12)
# GCC < 12 doesn't support -fuse-ld=mold, so we have to use tools prefix path
# if mold is installed in a non-standard dir, users can set -DMOLD_PREFIX=/path/to/mold_install_prefix
find_path(MOLD_PREFIX_DIR NAMES ld