newapkbuild: detect CMakeLists.txt file for CMake

Some CMake packages do not have cmake/ directory, but all have
CMakeLists.txt present in the root directory.
This commit is contained in:
A. Wilcox 2017-09-28 01:39:35 -05:00 committed by Timo Teräs
parent 545eed3a24
commit 0296de9cd1
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ __EOF__
buildtype="perl"
elif [ -r "$sdir"/waf ]; then
buildtype="waf"
elif [ -d "$sdir"/cmake ]; then
elif [ -d "$sdir"/cmake ] || [ -r "$sdir/CMakeLists.txt" ]; then
buildtype="cmake"
elif [ -r "$sdir"/Makefile ]; then
buildtype="make"