mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-20 05:12:07 -05:00
Add `COMPILE_WARNING_AS_ERROR` target property and supporting `CMAKE_COMPILE_WARNING_AS_ERROR` variable. `COMPILE_WARNING_AS_ERROR` is initialized by `CMAKE_COMPILE_WARNING_AS_ERROR`. It is a boolean variable. If it is true, it expands to a different flag depending on the compiler such that any warnings at compile will be treated as errors. Supports compiler ids that I could find a relevant flag for.
4 lines
100 B
CMake
4 lines
100 B
CMake
cmake_minimum_required(VERSION 3.23)
|
|
project(${RunCMake_TEST} NONE)
|
|
include(${RunCMake_TEST}.cmake)
|