]> wagnertech.de Git - projects.git/blobdiff - tools/make/cmake_check
cpp-d1064d
[projects.git] / tools / make / cmake_check
index aa85d8cee15773ba1d4c59ed781c69259e2d7192..22f6eb45c7dc271f56afe0472eb4ff48d9923cac 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