Skip to content

Commit b670cc3

Browse files
authored
chore: bump CheckWarning.cmake to version 3.0.0 (#212)
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
1 parent 75b9575 commit b670cc3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ endif()
3131

3232
if(PROJECT_IS_TOP_LEVEL)
3333
# Statically analyze code by checking for warnings
34-
find_package(CheckWarning 2.1.0 REQUIRED)
35-
include(CheckWarning)
36-
add_check_warning()
34+
find_package(CheckWarning 3.0.0 REQUIRED)
35+
add_check_warning(TREAT_WARNINGS_AS_ERRORS)
3736
endif()
3837

3938
# Build the main library

cmake/FindCheckWarning.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ cpmaddpackage(gh:threeal/CheckWarning.cmake@${CheckWarning_FIND_VERSION})
33

44
include(FindPackageHandleStandardArgs)
55
find_package_handle_standard_args(CheckWarning REQUIRED_VARS CheckWarning.cmake_ADDED)
6-
7-
list(PREPEND CMAKE_MODULE_PATH ${CheckWarning_SOURCE_DIR}/cmake)

0 commit comments

Comments
 (0)