From 0296de9cd1235b6ab14f8f5743b9a409f824c58a Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 28 Sep 2017 01:39:35 -0500 Subject: [PATCH] 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. --- newapkbuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newapkbuild.in b/newapkbuild.in index deb0e44..0e86b39 100644 --- a/newapkbuild.in +++ b/newapkbuild.in @@ -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"