mirror of
https://github.com/stenzek/duckstation.git
synced 2026-07-11 01:24:11 +02:00
2307ad9b0f
This was never supported, and hasn't been updated in a while anyway.
15 lines
537 B
CMake
15 lines
537 B
CMake
# SPDX-FileCopyrightText: 2019-2026 Connor McLaughlin <stenzek@gmail.com>
|
|
# SPDX-License-Identifier: CC-BY-NC-ND-4.0 + Packaging Restriction
|
|
#
|
|
# NOTE: In addition to the terms of CC-BY-NC-ND-4.0, you may not use this file to create
|
|
# packages or build recipes without explicit permission from the copyright holder.
|
|
|
|
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()
|