Skip to content
Snippets Groups Projects
Commit c3f9f8e6 authored by Soeren Peters's avatar Soeren Peters
Browse files

Enable clang tidy only for the self written libraries.

parent 0ce300f7
No related branches found
No related tags found
No related merge requests found
...@@ -100,6 +100,9 @@ endfunction() ...@@ -100,6 +100,9 @@ endfunction()
## ##
################################################################################# #################################################################################
function(vf_add_library) function(vf_add_library)
# enable clang tidy for this target
find_program(CLANG_TIDY_COMMAND NAMES clang-tidy)
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND}")
set( options ) set( options )
set( oneValueArgs ) set( oneValueArgs )
...@@ -169,6 +172,7 @@ function(vf_add_library) ...@@ -169,6 +172,7 @@ function(vf_add_library)
status("... configuring target: ${library_name} (type=${ARG_BUILDTYPE}) done") status("... configuring target: ${library_name} (type=${ARG_BUILDTYPE}) done")
unset(CMAKE_CXX_CLANG_TIDY)
endfunction() endfunction()
......
...@@ -57,9 +57,6 @@ endif() ...@@ -57,9 +57,6 @@ endif()
include(CMakePrintHelpers) include(CMakePrintHelpers)
include(${VF_CMAKE_DIR}/VirtualFluidsMacros.cmake) include(${VF_CMAKE_DIR}/VirtualFluidsMacros.cmake)
find_program(CLANG_TIDY_COMMAND NAMES clang-tidy)
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND}")
################################################################################# #################################################################################
# COMMON LIBRARIES # COMMON LIBRARIES
################################################################################# #################################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment