cpp-d1064d
[projects.git] / tools / make / cmake_check
index aa85d8c..22f6eb4 100755 (executable)
@@ -3,6 +3,18 @@ set -e
 cd ../build
 if [ -e debian/$paket.cmake ]
 then
+       # do checks
+       if [ -e debian/$paket.build ]
+       then
+               echo "cmake is not compatible with other builds. Remove $paket.build"
+               exit 1
+       fi
+       if [ -e debian/$paket.prebuild ]
+       then
+               echo "cmake is not compatible with other builds. Remove $paket.prebuild"
+               exit 2
+       fi
+       
        cp debian/$paket.cmake CMakeLists.txt
        echo "make" > debian/$paket.build
        chmod 755 debian/$paket.build