File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Set a default build type if none was specified
2
- set (default_build_type "Release" )
2
+ set (DEFAULT_BUILD_TYPE "Release" )
3
3
if (EXISTS "${CMAKE_SOURCE_DIR} /.git" )
4
- set (default_build_type "Debug" )
4
+ set (DEFAULT_BUILD_TYPE "Debug" )
5
5
endif ()
6
6
7
7
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES )
8
- message (
9
- STATUS
10
- "Setting build type to '${default_build_type} ' as none was specified."
11
- )
8
+ message (STATUS "Setting build type to '${DEFAULT_BUILD_TYPE} ' as none
9
+ was specified." )
10
+
12
11
set (CMAKE_BUILD_TYPE
13
- ${default_build_type }
12
+ ${DEFAULT_BUILD_TYPE }
14
13
CACHE STRING "Choose the type of build." FORCE )
15
14
endif ()
Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ cmake-lint \
6
6
${CMAKE_FILES} \
7
7
--config-files \
8
8
${CXX_DEV_TOOLS_PATH} /cmake/format/.cmake-format.json \
9
- ${CXX_DEV_TOOLS_PATH} /cmake/format/.esp-idf-cmake-format.json
9
+ ${CXX_DEV_TOOLS_PATH} /cmake/format/.esp-idf-cmake-format.json \
10
+ --max-statement-spacing 2
You can’t perform that action at this time.
0 commit comments