Commit 971c7467 authored by Justin Carpentier's avatar Justin Carpentier

cmake: set MESSAGE about the missing submodule before any include

parent 8fb6ef79
......@@ -14,13 +14,14 @@ SET(PROJECT_CUSTOM_HEADER_EXTENSION "hpp")
SET(CXX_DISABLE_WERROR True)
SET(CMAKE_VERBOSE_MAKEFILE True)
INCLUDE(cmake/base.cmake)
PROJECT(${PROJECT_NAME} CXX)
# Check if the submodule cmake have been initialized
IF(NOT EXISTS "${PROJECT_SOURCE_DIR}/cmake/base.cmake")
MESSAGE(FATAL_ERROR "\nPlease run the following command first:\ngit submodule update --init\n")
ENDIF()
INCLUDE(cmake/base.cmake)
PROJECT(${PROJECT_NAME} CXX)
INCLUDE(cmake/boost.cmake)
INCLUDE(cmake/python.cmake)
INCLUDE(cmake/ide.cmake)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment