mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Clang doesn't like -Wno-unused-but-set-variable
The release versions of CMake don't yet properly support flag checking in Clang, so we need to exclude it explicitly for the time being.
This commit is contained in:
parent
76fb792544
commit
805564dcf2
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ else()
|
||||||
set(RELEASE_WARNING_FLAGS "")
|
set(RELEASE_WARNING_FLAGS "")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT APPLE)
|
if(NOT APPLE AND NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
CHECK_CXX_COMPILER_FLAG("-Wno-unused-but-set-variable" HAS_UNUSED_BUT_SET_VARIABLE_WARNING)
|
CHECK_CXX_COMPILER_FLAG("-Wno-unused-but-set-variable" HAS_UNUSED_BUT_SET_VARIABLE_WARNING)
|
||||||
if(HAS_UNUSED_BUT_SET_VARIABLE_WARNING)
|
if(HAS_UNUSED_BUT_SET_VARIABLE_WARNING)
|
||||||
set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-unused-but-set-variable")
|
set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-unused-but-set-variable")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue