Skip to content

Commit

Permalink
Add AUTO_SUBMODULE_UPDATE
Browse files Browse the repository at this point in the history
  • Loading branch information
enp1s0 committed Aug 20, 2024
1 parent e69c23c commit a534ec5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a534ec5

Please sign in to comment.