Skip to content

Commit 870690c

Browse files
wjakobssondmcppcheck
authored andcommitted
fix ci
1 parent 7932f26 commit 870690c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
cmake_minimum_required(VERSION 3.22)
22
project(Cppcheck VERSION 2.22.99 LANGUAGES CXX)
33

4+
# CMake 4.5 added the opt-in CMD_STRICT diagnostics (e.g. non-target-directive).
5+
# They are ignored by default, but -Werror=dev promotes them to errors.
6+
if(CMAKE_VERSION VERSION_GREATER_EQUAL 4.5)
7+
cmake_diagnostic(SET CMD_STRICT IGNORE RECURSE)
8+
endif()
9+
410
include(cmake/options.cmake)
511

612
include(cmake/cxx11.cmake)

0 commit comments

Comments
 (0)