From ddb79265db40369adc27940259ce6e8c7648801c Mon Sep 17 00:00:00 2001
From: Daniel <d.hornung@indiscale.com>
Date: Tue, 17 Aug 2021 19:46:15 +0200
Subject: [PATCH] ENH: cmake option -D SKIP_LINTING=ON also affects auto-format
 now.

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c2980ba..30a7027 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -412,7 +412,7 @@ install(FILES ${PROJECT_SOURCE_DIR}/caosdbConfigVersion.cmake
 ### code formatting with clang-format
 #######################################################
 option(AUTOFORMATTING "call clang-format at configure time" ON)
-if(AUTOFORMATTING)
+if(AUTOFORMATTING AND NOT SKIP_LINTING)
     file(GLOB format_test_sources test/*.cpp test/*.h test/*.h.in)
     execute_process(COMMAND clang-format -i --verbose ${libcaosdb_INCL}
         ${libcaosdb_SRC} ${libcaosdb_TEST_SRC}
-- 
GitLab