From 5aa67adff3a51f79b396228fb693ef840a2c83c1 Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Tue, 10 Mar 2015 16:45:28 +0100 Subject: [PATCH] cmake: add message for uninitialized submodules Issue #239 --- src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c58b2a7b2a..994693387b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -144,6 +144,11 @@ ENDIF(MOSEK_FOUND) #- osi_clp (linear programming interface) # ============================================================================== +if(NOT EXISTS ${PROJECT_SOURCE_DIR}/dependencies/osi_clp/Clp) + message(FATAL_ERROR + "\n'osi_clp' submodule is missing, please update your repository:\n" + " > git submodule update -i\n") +endif() ADD_SUBDIRECTORY(dependencies/osi_clp) INCLUDE_DIRECTORIES( ./dependencies/osi_clp/CoinUtils/src/