summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authormakise-homura <akemi_homura@kurisa.ch>2024-01-15 03:11:28 (GMT)
committermakise-homura <akemi_homura@kurisa.ch>2024-01-16 19:12:06 (GMT)
commit1dbb31cea25adcfe9a11f1797ebcfdc11712c2b6 (patch)
tree8028bb1592bd54c9e38f12c27917957031d0acde /Utilities
parent83af26d9ad5ef9a1732f4573c06797ff8d74058a (diff)
downloadCMake-1dbb31cea25adcfe9a11f1797ebcfdc11712c2b6.zip
CMake-1dbb31cea25adcfe9a11f1797ebcfdc11712c2b6.tar.gz
CMake-1dbb31cea25adcfe9a11f1797ebcfdc11712c2b6.tar.bz2
libarchive: avoid lchmod not implemented warning on old LCC
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmlibarchive/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt
index 1237608..e47184b 100644
--- a/Utilities/cmlibarchive/CMakeLists.txt
+++ b/Utilities/cmlibarchive/CMakeLists.txt
@@ -1425,7 +1425,9 @@ CHECK_FUNCTION_EXISTS_GLIBC(getpid HAVE_GETPID)
CHECK_FUNCTION_EXISTS_GLIBC(getvfsbyname HAVE_GETVFSBYNAME)
CHECK_FUNCTION_EXISTS_GLIBC(gmtime_r HAVE_GMTIME_R)
CHECK_FUNCTION_EXISTS_GLIBC(lchflags HAVE_LCHFLAGS)
-CHECK_FUNCTION_EXISTS_GLIBC(lchmod HAVE_LCHMOD)
+if(NOT CMAKE_C_COMPILER_ID STREQUAL "LCC" OR NOT CMAKE_C_COMPILER_VERSION VERSION_LESS_EQUAL "1.23")
+ CHECK_FUNCTION_EXISTS_GLIBC(lchmod HAVE_LCHMOD)
+endif()
CHECK_FUNCTION_EXISTS_GLIBC(lchown HAVE_LCHOWN)
CHECK_FUNCTION_EXISTS_GLIBC(link HAVE_LINK)
CHECK_FUNCTION_EXISTS_GLIBC(linkat HAVE_LINKAT)