mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 20:02:55 +00:00
[MKISOFS] CMakeLists.txt: Add a check for Clang and its version (#6369)
GCC 8.4 and Clang 13.0.1:
`cc1: note: unrecognized command-line option ‘-Wno-deprecated-non-prototype’ may have been intended to silence earlier diagnostics`
Addendum to commit 4e3bf252d
This commit is contained in:
parent
d4a453ca2e
commit
2505489d29
|
@ -107,10 +107,12 @@ else()
|
||||||
# Silence compilers checking for invalid formatting sequences.
|
# Silence compilers checking for invalid formatting sequences.
|
||||||
target_compile_options(libschily PRIVATE "-Wno-format")
|
target_compile_options(libschily PRIVATE "-Wno-format")
|
||||||
|
|
||||||
# mkisofs uses K&R-style function definitions to support very old compilers.
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "15")
|
||||||
# This causes warnings with modern compilers.
|
# mkisofs uses K&R-style function definitions to support very old compilers.
|
||||||
target_compile_options(libmdigest PRIVATE "-Wno-deprecated-non-prototype")
|
# This causes warnings with modern compilers.
|
||||||
target_compile_options(libschily PRIVATE "-Wno-deprecated-non-prototype")
|
target_compile_options(libmdigest PRIVATE "-Wno-deprecated-non-prototype")
|
||||||
target_compile_options(libsiconv PRIVATE "-Wno-deprecated-non-prototype")
|
target_compile_options(libschily PRIVATE "-Wno-deprecated-non-prototype")
|
||||||
target_compile_options(mkisofs PRIVATE "-Wno-deprecated-non-prototype")
|
target_compile_options(libsiconv PRIVATE "-Wno-deprecated-non-prototype")
|
||||||
|
target_compile_options(mkisofs PRIVATE "-Wno-deprecated-non-prototype")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue