Skip to content
Snippets Groups Projects
Verified Commit db084ba7 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

cmake: add check of cmake submodule loading

parent 31c9b823
No related branches found
No related tags found
No related merge requests found
# #
# Software License Agreement (BSD License) # Software License Agreement (BSD License)
# #
# Copyright (c) 2014 CNRS-LAAS # Copyright (c) 2014-2019 CNRS-LAAS, INRIA
# Author: Florent Lamiraux, Joseph Mirabel # Author: Florent Lamiraux, Joseph Mirabel
# All rights reserved. # All rights reserved.
# #
...@@ -45,6 +45,11 @@ SET(PROJECT_USE_CMAKE_EXPORT TRUE) ...@@ -45,6 +45,11 @@ SET(PROJECT_USE_CMAKE_EXPORT TRUE)
CMAKE_POLICY(SET CMP0022 NEW) CMAKE_POLICY(SET CMP0022 NEW)
SET(PROJECT_USE_KEYWORD_LINK_LIBRARIES TRUE) 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/eigen.cmake)
include(cmake/boost.cmake) include(cmake/boost.cmake)
include(cmake/python.cmake) include(cmake/python.cmake)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment