File tree 2 files changed +3
-4
lines changed
Filter options
2 files changed +3
-4
lines changed
Original file line number Diff line number Diff line change @@ -13,11 +13,10 @@ file(GLOB_RECURSE ALL_CXX_SOURCE_FILES
13
13
14
14
_Cxx11()
15
15
_ClangFormat(UnicodeHpp ${ALL_CXX_SOURCE_FILES} )
16
- _ClangTidy(UnicodeHpp ${ALL_CXX_SOURCE_FILES} )
16
+ _ClangTidy(UnicodeHpp ${ALL_CXX_SOURCE_FILES} "-I ${PROJECT_SOURCE_DIR} /ext" )
17
17
18
18
# GCC
19
- if (CMAKE_COMPILER_IS_GNUCXX AND NOT COMPILER_FLAGS_SET)
20
- set (COMPILER_FLAGS_SET ON )
19
+ if (CMAKE_COMPILER_IS_GNUCXX)
21
20
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Weffc++" )
22
21
endif ()
23
22
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ macro(_ClangTidy TIDY_TARGET_NAME)
72
72
# Go through the parameters and figure out which are code files and which are include directories
73
73
set (params "${ARGN} " )
74
74
foreach (param IN LISTS params)
75
- string (SUBSTRING param 0 2 TIDY_TEMP_STRING)
75
+ string (SUBSTRING ${ param} 0 2 TIDY_TEMP_STRING)
76
76
if (TIDY_TEMP_STRING STREQUAL "-I" )
77
77
set (TIDY_INCLUDE_DIRS "${TIDY_INCLUDE_DIRS} " "${param} " )
78
78
else ()
You can’t perform that action at this time.
0 commit comments