Verified Commit db084ba7 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

cmake: add check of cmake submodule loading

parent 31c9b823
#
# Software License Agreement (BSD License)
#
# Copyright (c) 2014 CNRS-LAAS
# Copyright (c) 2014-2019 CNRS-LAAS, INRIA
# Author: Florent Lamiraux, Joseph Mirabel
# All rights reserved.
#
......@@ -45,6 +45,11 @@ SET(PROJECT_USE_CMAKE_EXPORT TRUE)
CMAKE_POLICY(SET CMP0022 NEW)
SET(PROJECT_USE_KEYWORD_LINK_LIBRARIES TRUE)
# Check if the submodule cmake have been initialized
IF(NOT EXISTS "${CMAKE_SOURCE_DIR}/cmake/base.cmake")
MESSAGE(FATAL_ERROR "\nPlease run the following command first:\ngit submodule update --init\n")
ENDIF()
include(cmake/eigen.cmake)
include(cmake/boost.cmake)
include(cmake/python.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