Skip to content

Commit

Permalink
Automatically download submodules in cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
mhajas committed Apr 19, 2017
1 parent f9fcdc7 commit ad2ccda
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
cmake_minimum_required(VERSION 3.4)
project(eacirc)

find_package(Git)

if (NOT EXISTS eacirc-streams/CMakeLists.txt)
execute_process(
COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
endif()

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/eacirc-streams/eacirc-core/cmake)

include(build_stream)
Expand Down
2 changes: 1 addition & 1 deletion eacirc-streams

0 comments on commit ad2ccda

Please sign in to comment.