summaryrefslogtreecommitdiffstats
path: root/kde/cmake/kde-runtime
diff options
context:
space:
mode:
Diffstat (limited to 'kde/cmake/kde-runtime')
-rw-r--r--kde/cmake/kde-runtime7
1 files changed, 7 insertions, 0 deletions
diff --git a/kde/cmake/kde-runtime b/kde/cmake/kde-runtime
index 42ece97..b9bb5cb 100644
--- a/kde/cmake/kde-runtime
+++ b/kde/cmake/kde-runtime
@@ -1,3 +1,10 @@
+# Temporary kludge to allow badly ported app to compile:
+if ! grep -q 'cmake_minimum_required' CMakeLists.txt ; then
+ # Prepend a cmake_minimum_required stanza at the top, which enables
+ # newer cmake features which the build needs:
+ sed -i -e '1icmake_minimum_required(VERSION 2.8.9)\' CMakeLists.txt
+fi
+
mkdir build
cd build
cmake \