mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-13 08:15:46 -04:00
cmake: Silence warnings with clang.
This commit is contained in:
8
CMakeModules/CheckCXXFlag.cmake
Normal file
8
CMakeModules/CheckCXXFlag.cmake
Normal file
@ -0,0 +1,8 @@
|
||||
include(CheckCXXCompilerFlag)
|
||||
|
||||
function(check_cxx_flag flag var)
|
||||
CHECK_CXX_COMPILER_FLAG("-Werror ${flag}" ${var})
|
||||
if(${var})
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}" PARENT_SCOPE)
|
||||
endif()
|
||||
endfunction()
|
Reference in New Issue
Block a user