diff options
| author | 2022-07-30 05:01:09 +0200 | |
|---|---|---|
| committer | 2022-07-30 05:01:09 +0200 | |
| commit | 8b40b59084159f647c8b0393bc31735e5e417a8c (patch) | |
| tree | 347d0d0c0011c99d62352b83f20faecd51bc60c4 | |
| parent | Merge pull request #8665 from liamwhite/github-is-dumb (diff) | |
| download | yuzu-8b40b59084159f647c8b0393bc31735e5e417a8c.tar.gz yuzu-8b40b59084159f647c8b0393bc31735e5e417a8c.tar.xz yuzu-8b40b59084159f647c8b0393bc31735e5e417a8c.zip | |
cmake: add option to check submodules
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d35ccb696..b34203239 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -40,6 +40,8 @@ option(YUZU_TESTS "Compile tests" ON) | |||
| 40 | 40 | ||
| 41 | option(YUZU_USE_BUNDLED_VCPKG "Use vcpkg for yuzu dependencies" OFF) | 41 | option(YUZU_USE_BUNDLED_VCPKG "Use vcpkg for yuzu dependencies" OFF) |
| 42 | 42 | ||
| 43 | option(YUZU_CHECK_SUBMODULES "Check if submodules are present" ON) | ||
| 44 | |||
| 43 | if (YUZU_USE_BUNDLED_VCPKG) | 45 | if (YUZU_USE_BUNDLED_VCPKG) |
| 44 | include(${CMAKE_SOURCE_DIR}/externals/vcpkg/scripts/buildsystems/vcpkg.cmake) | 46 | include(${CMAKE_SOURCE_DIR}/externals/vcpkg/scripts/buildsystems/vcpkg.cmake) |
| 45 | elseif(NOT "$ENV{VCPKG_TOOLCHAIN_FILE}" STREQUAL "") | 47 | elseif(NOT "$ENV{VCPKG_TOOLCHAIN_FILE}" STREQUAL "") |
| @@ -77,7 +79,7 @@ function(check_submodules_present) | |||
| 77 | endforeach() | 79 | endforeach() |
| 78 | endfunction() | 80 | endfunction() |
| 79 | 81 | ||
| 80 | if(EXISTS ${PROJECT_SOURCE_DIR}/.gitmodules) | 82 | if(EXISTS ${PROJECT_SOURCE_DIR}/.gitmodules AND YUZU_CHECK_SUBMODULES) |
| 81 | check_submodules_present() | 83 | check_submodules_present() |
| 82 | endif() | 84 | endif() |
| 83 | configure_file(${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.qrc | 85 | configure_file(${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.qrc |