duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

CheckCXXFlag.cmake (230B)


      1 include(CheckCXXCompilerFlag)
      2 
      3 function(check_cxx_flag flag var)
      4     CHECK_CXX_COMPILER_FLAG("-Werror ${flag}" ${var})
      5     if(${var})
      6        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}" PARENT_SCOPE)
      7     endif()
      8 endfunction()