File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,16 @@ if(BUILD_TESTING AND INJA_BUILD_TESTS)
107107 add_test (single_inja_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} /single_inja_test)
108108
109109
110- add_executable (inja_benchmark test /benchmark.cpp
111- test /test -common.hpp)
110+ add_executable (inja_benchmark test /benchmark.cpp test /test -common.hpp)
112111 target_link_libraries (inja_benchmark PRIVATE inja)
113112 target_include_directories (inja_benchmark PRIVATE third_party/include )
113+
114+
115+ if (INJA_ENABLE_CLANG_TIDY)
116+ find_program (CLANG_TIDY_EXE NAMES "clang-tidy" REQUIRED)
117+ set (CLANG_TIDY_COMMAND "${CLANG_TIDY_EXE} " "-config-file=${CMAKE_CURRENT_SOURCE_DIR} /.clang-tidy" )
118+ set_target_properties (single_inja_test PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND} " )
119+ endif ()
114120endif ()
115121
116122
@@ -126,13 +132,6 @@ if(COVERALLS)
126132endif ()
127133
128134
129- if (INJA_ENABLE_CLANG_TIDY)
130- find_program (CLANG_TIDY_EXE NAMES "clang-tidsy" REQUIRED)
131- set (CLANG_TIDY_COMMAND "${CLANG_TIDY_EXE} " "-config-file=${CMAKE_CURRENT_SOURCE_DIR} /.clang-tidy" )
132- set_target_properties (inja PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND} " )
133- endif ()
134-
135-
136135include (CMakePackageConfigHelpers)
137136
138137write_basic_package_version_file(
You can’t perform that action at this time.
0 commit comments