Skip to content
Snippets Groups Projects
Commit 80590802 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: Debug building works now without clang-tidy installed.

parent a103192c
Branches
Tags
2 merge requests!33Release 0.1,!30Debug build
Pipeline #14808 failed
......@@ -252,15 +252,15 @@ endfunction()
option(LINTING "Enable linting with clang-tidy and iwyu when in non-Debug build-type" OFF)
if("${CMAKE_BUILD_TYPE}" MATCHES "Debug" OR LINTING)
if (clang_tidy AND ("${CMAKE_BUILD_TYPE}" MATCHES "Debug" OR LINTING))
set(_LINTING ON)
endif()
option(SKIP_LINTING "Skip linting even when in Debug build-type" OFF)
if("${CMAKE_BUILD_TYPE}" MATCHES "Debug" AND SKIP_LINTING)
if ("${CMAKE_BUILD_TYPE}" MATCHES "Debug" AND SKIP_LINTING)
message(WARNING "Skipping linting due to SKIP_LINTING option")
set(_LINTING OFF)
endif()
if(_LINTING)
if (_LINTING)
### set paranoid compiler flags
add_compiler_flag("-Wall")
......
......@@ -145,7 +145,7 @@ endif()
find_library(covlib NAMES gcov lcov)
message(STATUS "covlib: >${covlib}<")
if (${covlib} STREQUAL "covlib-NOTFOUND")
message(Warning "lcov or gcov libraries not found, skipping code coverage.")
message(STATUS "lcov or gcov libraries not found, skipping code coverage.")
return()
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment