Skip to content

Commit dcb007a

Browse files
committed
do not skip main.cpp when checking CMakeLists
1 parent bec6f87 commit dcb007a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: tools/check_cmakelists.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ set -e
1111
cd "`dirname $0`/.." # cd to arduino-esp32 root
1212

1313
# find all source files in repo
14-
REPO_SRCS=`find cores/esp32/ libraries/ -name 'examples' -prune -o -name 'main.cpp' -prune -o -name '*.c' -print -o -name '*.cpp' -print | sort`
14+
#REPO_SRCS=`find cores/esp32/ libraries/ -name 'examples' -prune -o -name 'main.cpp' -prune -o -name '*.c' -print -o -name '*.cpp' -print | sort`
15+
REPO_SRCS=`find cores/esp32/ libraries/ -name 'examples' -prune -o -name '*.c' -print -o -name '*.cpp' -print | sort`
1516

1617
# find all source files named in CMakeLists.txt COMPONENT_SRCS
1718
CMAKE_SRCS=`cmake --trace-expand -C CMakeLists.txt 2>&1 | grep COMPONENT_SRCS | sed 's/.\+COMPONENT_SRCS //' | sed 's/ )//' | tr ' ;' '\n' | sort`

0 commit comments

Comments
 (0)