We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75b9575 commit b670cc3Copy full SHA for b670cc3
CMakeLists.txt
@@ -31,9 +31,8 @@ endif()
31
32
if(PROJECT_IS_TOP_LEVEL)
33
# Statically analyze code by checking for warnings
34
- find_package(CheckWarning 2.1.0 REQUIRED)
35
- include(CheckWarning)
36
- add_check_warning()
+ find_package(CheckWarning 3.0.0 REQUIRED)
+ add_check_warning(TREAT_WARNINGS_AS_ERRORS)
37
endif()
38
39
# Build the main library
cmake/FindCheckWarning.cmake
@@ -3,5 +3,3 @@ cpmaddpackage(gh:threeal/CheckWarning.cmake@${CheckWarning_FIND_VERSION})
3
4
include(FindPackageHandleStandardArgs)
5
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