summaryrefslogtreecommitdiffstats
path: root/newapkbuild.in
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-28 01:39:35 -0500
committerTimo Teräs <timo.teras@iki.fi>2017-09-28 10:01:10 +0300
commit0296de9cd1235b6ab14f8f5743b9a409f824c58a (patch)
treec7498266ba2eb27bd173f2a5ac61740ce0d39b5a /newapkbuild.in
parent545eed3a242c86566ce7a7ebd0f9f1e296eecbeb (diff)
downloadabuild-0296de9cd1235b6ab14f8f5743b9a409f824c58a.tar.bz2
abuild-0296de9cd1235b6ab14f8f5743b9a409f824c58a.tar.xz
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.
Diffstat (limited to 'newapkbuild.in')
-rw-r--r--newapkbuild.in2
1 files changed, 1 insertions, 1 deletions
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"