From ba20fa121a0e97a7862aa163a11c7337a05188f7 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Thu, 11 Mar 2021 16:47:05 +0100 Subject: [BUILD] Enable lint targets if lint programs are found --- CMakeLists.txt | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ecefc0..fb4d5d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,6 @@ OPTION(DNBD3_SERVER_DEBUG_LOCKS "Add lock debugging code to dnbd3-server" OFF) OPTION(DNBD3_SERVER_DEBUG_THREADS "Add thread debugging code to dnbd3-server" OFF) OPTION(DNBD3_RELEASE_HARDEN "Compile dnbd3 programs in Release build with code hardening options" OFF) OPTION(DNBD3_PACKAGE_DOCKER "Enable packaging of Docker image" OFF) -OPTION(DNBD3_LINT "Enable source code linting and formatting with clang-format" OFF) # set supported build configurations set(CMAKE_CONFIGURATION_TYPES Debug Release) @@ -38,18 +37,7 @@ find_package(Threads REQUIRED) # include project version and build type related macros include(Version) include(Build) -if(DNBD3_LINT) - include(Lint) -else() - macro(add_linter LINT_NAME LINT_SOURCE_FILES) - endmacro() - macro(add_linter_fix LINT_NAME LINT_SOURCE_FILES) - endmacro() - macro(add_kernel_linter LINT_NAME LINT_SOURCE_FILES) - endmacro() - macro(add_kernel_linter_fix LINT_NAME LINT_SOURCE_FILES) - endmacro() -endif(DNBD3_LINT) +include(Lint) # check for system and enable or disable built of Linux kernel module if(DNBD3_KERNEL_MODULE AND UNIX AND CMAKE_SYSTEM_NAME MATCHES "Linux") -- cgit v1.2.3-55-g7522