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

Make clang tidy optional. default: OFF

parent e5046f48
No related branches found
No related tags found
No related merge requests found
......@@ -100,9 +100,12 @@ endfunction()
##
#################################################################################
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}")
if(BUILD_VF_CLANG_TIDY)
find_program(CLANG_TIDY_COMMAND NAMES clang-tidy)
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND}")
endif()
set( options )
set( oneValueArgs )
......
......@@ -36,7 +36,9 @@ set (VF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})
#################################################################################
option(BUILD_VF_CPU "Build VirtualFluids cpu variant" OFF)
option(BUILD_VF_GPU "Build VirtualFluids gpu variant" OFF)
option(BUILD_VF_UNIT_TESTS "Build VirtualFluids unit tests" OFF)
option(BUILD_VF_CLANG_TIDY "Add the clang tidy checks to the targets" OFF)
option(BUILD_SHARED_LIBS "" ON)
......
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