Files
CMake/Modules/Compiler/Apple-Swift.cmake
Evan Wilde dfa78c4868 Swift: Honor COMPILE_WARNING_AS_ERROR for command-line build systems
Define missing CMAKE_Swift_COMPILE_OPTIONS_WARNING_AS_ERROR for Swift to
`-warnings-as-errors`.

Fixes: #26872
2025-04-18 09:26:45 -04:00

4 lines
139 B
CMake

if(CMAKE_Swift_COMPILER_VERSION VERSION_GREATER_EQUAL 3.0)
set(CMAKE_Swift_COMPILE_OPTIONS_WARNING_AS_ERROR -warnings-as-errors)
endif()