Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 3a0e1bc

Browse files
authored
Update nmodl submodule to latest master and avoid recursive cloning (#443)
* nmodl now initialise necessary submodules so we do not need to do recursive initialisation that adds extra submodules for no reason * update nmodl to latest master
1 parent e87d0a7 commit 3a0e1bc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CMake/AddCLI11Submodule.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ find_package_handle_standard_args(CLI11 REQUIRED_VARS CLI11_PROJ)
1717
if(NOT CLI11_FOUND)
1818
find_package(Git 1.8.3 QUIET)
1919
if(NOT ${GIT_FOUND})
20-
message(FATAL_ERROR "git not found, clone repository with --recursive")
20+
message(FATAL_ERROR "git not found, download full repository or install git")
2121
endif()
22-
message(STATUS "Sub-module CLI11 missing: running git submodule update --init --recursive")
22+
message(STATUS "Sub-module CLI11 missing: running git submodule update --init")
2323
execute_process(
2424
COMMAND
25-
${GIT_EXECUTABLE} submodule update --init --recursive --
25+
${GIT_EXECUTABLE} submodule update --init --
2626
${CORENEURON_PROJECT_SOURCE_DIR}/external/CLI11
2727
WORKING_DIRECTORY ${CORENEURON_PROJECT_SOURCE_DIR})
2828
endif()

CMake/AddNmodlSubmodule.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ if(NOT NMODL_FOUND)
1818
if(NOT ${GIT_FOUND})
1919
message(FATAL_ERROR "git not found, clone repository with --recursive")
2020
endif()
21-
message(STATUS "Sub-module nmodl missing : running git submodule update --init --recursive")
21+
message(STATUS "Sub-module nmodl missing : running git submodule update --init")
2222
execute_process(
2323
COMMAND
24-
${GIT_EXECUTABLE} submodule update --init --recursive --
24+
${GIT_EXECUTABLE} submodule update --init --
2525
${CORENEURON_PROJECT_SOURCE_DIR}/external/nmodl
2626
WORKING_DIRECTORY ${CORENEURON_PROJECT_SOURCE_DIR})
2727
else()

0 commit comments

Comments
 (0)