mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
Define missing CMAKE_Swift_COMPILE_OPTIONS_WARNING_AS_ERROR for Swift to `-warnings-as-errors`. Fixes: #26872
4 lines
139 B
CMake
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()
|