diff options
author | Rechi <Rechi@users.noreply.github.com> | 2023-02-22 11:50:25 +1000 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2023-02-22 11:50:25 +1000 |
commit | aece6a8b3c52cdd64f1aa6c58aa6be33efdabc29 (patch) | |
tree | 5da309d23c4cfbffcb58a871a4e2196fa29b34ce /cmake | |
parent | 31fa7d1fce73ad47b8dc06d09e67aa459fbe4354 (diff) |
[cmake] remove deprecated CMAKE_COMPILER_IS_GNUCXX
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/buildtools/MOLD.cmake | 2 | ||||
-rw-r--r-- | cmake/scripts/linux/ArchSetup.cmake | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/cmake/scripts/linux/ArchSetup.cmake b/cmake/scripts/linux/ArchSetup.cmake index 4083483173..5fbed4d74c 100644 --- a/cmake/scripts/linux/ArchSetup.cmake +++ b/cmake/scripts/linux/ArchSetup.cmake @@ -83,7 +83,7 @@ if(CMAKE_BUILD_TYPE STREQUAL Release OR CMAKE_BUILD_TYPE STREQUAL MinSizeRel) set(NJOBS ${USE_LTO}) endif() - if(CMAKE_COMPILER_IS_GNUCXX) + if(CMAKE_CXX_COMPILER_ID STREQUAL GNU) # GCC # Make sure we strip binaries in Release build set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s") |