From 1957c5672f8286333e0a58b11f3721c296a95ed4 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Fri, 4 Dec 2015 12:03:18 -0600 Subject: [PATCH] Check for the presence of CrudControllerTrait.php instead of .git --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 63425f4b3..b07156919 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,10 +9,10 @@ set(zoneminder_VERSION "1.28.109") set(zoneminder_API_VERSION "${zoneminder_VERSION}.1") # Make sure the submodules are there -if( NOT EXISTS "${CMAKE_SOURCE_DIR}/web/api/app/Plugin/Crud/.git" ) +if( NOT EXISTS "${CMAKE_SOURCE_DIR}/web/api/app/Plugin/Crud/Lib/CrudControllerTrait.php" ) message( SEND_ERROR "The git submodules are not available. Please run git submodule update --init --recursive") -endif( NOT EXISTS "${CMAKE_SOURCE_DIR}/web/api/app/Plugin/Crud/.git" ) +endif( NOT EXISTS "${CMAKE_SOURCE_DIR}/web/api/app/Plugin/Crud/Lib/CrudControllerTrait.php" ) # CMake does not allow out-of-source build if CMakeCache.exists # in the source folder. Abort and notify the user