Updated modules
This commit is contained in:
parent
e07cbf8989
commit
b41aa08464
3 changed files with 20 additions and 15 deletions
5
.gitmodules
vendored
5
.gitmodules
vendored
|
|
@ -1,15 +1,20 @@
|
|||
[submodule "external/abseil-cpp"]
|
||||
path = external/abseil-cpp
|
||||
url = https://github.com/abseil/abseil-cpp
|
||||
shallow = true
|
||||
[submodule "external/Catch2"]
|
||||
path = external/Catch2
|
||||
url = https://github.com/catchorg/Catch2
|
||||
shallow = true
|
||||
[submodule "external/benchmark"]
|
||||
path = external/benchmark
|
||||
url = https://github.com/google/benchmark
|
||||
shallow = true
|
||||
[submodule "external/readerwriterqueue"]
|
||||
path = external/readerwriterqueue
|
||||
url = https://github.com/cameron314/readerwriterqueue.git
|
||||
shallow = true
|
||||
[submodule "external/cnpy"]
|
||||
path = external/cnpy
|
||||
url = https://github.com/rogersce/cnpy.git
|
||||
shallow = true
|
||||
|
|
|
|||
|
|
@ -31,20 +31,20 @@ message("Cmake flags: ${CMAKE_CXX_FLAGS}")
|
|||
# Export the compile_commands.json file
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
find_package(Git QUIET)
|
||||
if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
|
||||
# find_package(Git QUIET)
|
||||
# if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
|
||||
# Update submodules as needed
|
||||
option(GIT_SUBMODULE "Check submodules during build" ON)
|
||||
if(GIT_SUBMODULE)
|
||||
message(STATUS "Submodule update")
|
||||
execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive --remote
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
RESULT_VARIABLE GIT_SUBMOD_RESULT)
|
||||
if(NOT GIT_SUBMOD_RESULT EQUAL "0")
|
||||
message(FATAL_ERROR "git submodule update --init failed with ${GIT_SUBMOD_RESULT}, please checkout submodules")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
# option(GIT_SUBMODULE "Check submodules during build" ON)
|
||||
# if(GIT_SUBMODULE)
|
||||
# message(STATUS "Submodule update")
|
||||
# execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive --remote
|
||||
# WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
# RESULT_VARIABLE GIT_SUBMOD_RESULT)
|
||||
# if(NOT GIT_SUBMOD_RESULT EQUAL "0")
|
||||
# message(FATAL_ERROR "git submodule update --init failed with ${GIT_SUBMOD_RESULT}, please checkout submodules")
|
||||
# endif()
|
||||
# endif()
|
||||
# endif()
|
||||
|
||||
# Build options and includes
|
||||
set(BUILD_TESTING OFF CACHE BOOL "Disable Abseil's tests")
|
||||
|
|
@ -87,4 +87,4 @@ set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "Disable Google Benchmark tests")
|
|||
set(BENCHMARK_ENABLE_INSTALL OFF CACHE BOOL "Disable Google Benchmark install")
|
||||
add_subdirectory(external/benchmark EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(benchmarks)
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
|||
2
external/Catch2
vendored
2
external/Catch2
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit f2c2711bdcc583938e444f2039b9ceba840defcf
|
||||
Subproject commit dd1f0f1c7298cb51389cf5a2f8946aa0c8ca621c
|
||||
Loading…
Add table
Reference in a new issue