mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 15:15:40 +00:00
9 lines
230 B
CMake
9 lines
230 B
CMake
|
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()
|