Skip to content

Commit

Permalink
Add full clone option
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Sep 17, 2019
1 parent 2cac306 commit dcfc210
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions cmake/modules/CheckSubmodules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# Files which confirm a successful clone
SET(VALID_CRUMBS "CMakeLists.txt;Makefile;Makefile.in;Makefile.am;configure.ac;configure.py;autogen.sh;.gitignore;LICENSE;Home.md")

OPTION(LIST_SUBMODULES "Lists the available git submodules for automatic cloning" OFF)
OPTION(NO_SHALLOW_CLONE "Disable shallow cloning of submodules" OFF)

# Try and use the specified shallow clone on submodules, if supported
SET(DEPTH_VALUE 100)

Expand Down Expand Up @@ -107,7 +110,6 @@ IF(NOT SKIP_SUBMODULES_LENGTH EQUAL SKIP_COUNT)
MESSAGE(FATAL_ERROR "${FATAL_MSG}")
ENDIF()

OPTION(LIST_SUBMODULES "Lists the available git submodules for automatic cloning" OFF)
IF(LIST_SUBMODULES)
UNSET(LIST_SUBMODULES CACHE)
MESSAGE("\nAll possible -DSKIP_SUBMODULES values")
Expand Down Expand Up @@ -151,7 +153,7 @@ MACRO(GIT_SUBMODULE SUBMODULE_PATH FORCE_DEINIT FORCE_REMOTE FULL_CLONE)
GIT_SUBMODULE(${SUBMODULE_PATH} false false ${FULL_CLONE_FLAG})
ELSE()
# Try to use the depth switch
IF(GIT_VERSION_STRING VERSION_LESS "1.8.4")
IF(NO_SHALLOW_CLONE OR GIT_VERSION_STRING VERSION_LESS "1.8.4")
# Shallow submodules were introduced in 1.8.4
MESSAGE("-- Fetching ${SUBMODULE_PATH}")
SET(DEPTH_CMD "")
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/PluginList.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
SET(PLUGIN_LIST "" CACHE STRING "List of plug-ins to build")
STRING(REPLACE " " ";" PLUGIN_LIST "${PLUGIN_LIST}")
OPTION(LMMS_MINIMAL "Build a minimal list of plug-ins" OFF)
OPTION(LIST_PLUGINS "Lists the available plugins for building" OFF)

SET(MINIMAL_LIST
audio_file_processor
Expand Down Expand Up @@ -87,7 +88,6 @@ MACRO(LIST_ALL_PLUGINS)
MESSAGE(FATAL_ERROR "Information was requested, aborting build!")
ENDMACRO()

OPTION(LIST_PLUGINS "Lists the available plugins for building" OFF)
IF(LIST_PLUGINS)
UNSET(LIST_PLUGINS CACHE)
LIST_ALL_PLUGINS()
Expand Down

0 comments on commit dcfc210

Please sign in to comment.