diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ee8a02..f44f335 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,9 +2,17 @@ cmake_minimum_required(VERSION 3.18) project(ozimmu LANGUAGES CXX CUDA) set(BUILD_TEST OFF) +set(AUTO_SUBMODULE_UPDATE ON) find_package(CUDAToolkit 12.1 REQUIRED) +# Update git submodules +if (${AUTO_SUBMODULE_UPDATE}) + execute_process( + COMMAND git submodule update --init --recursive + ) +endif() + # CUDA/CXX foreach(lang CXX CUDA) set(CMAKE_${lang}_STANDARD 17)