Skip to content

Commit dea9d25

Browse files
committed
cmake: check if the cmake module has been initialized
1 parent 83b453b commit dea9d25

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
77

8+
# Check if the submodule cmake have been initialized
9+
IF(NOT EXISTS "${PROJECT_SOURCE_DIR}/cmake/base.cmake")
10+
MESSAGE(FATAL_ERROR "\nPlease run the following command first:\ngit submodule update --init\n")
11+
ENDIF()
12+
813
INCLUDE(cmake/base.cmake)
914
INCLUDE(cmake/boost.cmake)
1015
INCLUDE(cmake/python.cmake)

0 commit comments

Comments
 (0)