From a534ec5e3f9658ab20fb34e924bc8202f36ab1ad Mon Sep 17 00:00:00 2001 From: enp1s0 Date: Tue, 20 Aug 2024 11:26:40 +0900 Subject: [PATCH] Add AUTO_SUBMODULE_UPDATE --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) 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)