parent
f3406ee749
commit
44d9092306
@ -0,0 +1,3 @@
|
||||
[submodule "extern/assimp/assimp"]
|
||||
path = extern/assimp/assimp
|
||||
url = https://github.com/assimp/assimp.git
|
@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
## Author: Shaun Reed | Contact: shaunrd0@gmail.com | URL: www.shaunreed.com ##
|
||||
## ##
|
||||
## CMake function to update git submodules ##
|
||||
################################################################################
|
||||
include_guard()
|
||||
|
||||
find_package(Git)
|
||||
|
||||
# _PATH: Path to git submodule location that we want to update
|
||||
# + submodule_update(extern/assimp)
|
||||
function(submodule_update _PATH)
|
||||
if (NOT UPDATE_SUBMODULES)
|
||||
return()
|
||||
endif()
|
||||
|
||||
if (NOT GIT_FOUND)
|
||||
message(FATAL_ERROR "Error: No git executable found")
|
||||
endif()
|
||||
|
||||
message(STATUS "${_PATH}")
|
||||
execute_process(
|
||||
COMMAND ${GIT_EXECUTABLE} submodule update --init "${_PATH}"
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
||||
RESULT_VARIABLE result
|
||||
)
|
||||
|
||||
if (NOT result EQUAL 0)
|
||||
message(FATAL_ERROR "Error: Unable to update git submodule at ${_PATH}")
|
||||
endif()
|
||||
endfunction()
|
@ -0,0 +1 @@
|
||||
Subproject commit bd64cc88dff17f118ecf32ebcbacaf566f6b6449
|
Loading…
Reference in new issue