summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fletcher Porter2021-11-01 23:51:11 -0700
committerGravatar Fletcher Porter2021-11-02 00:01:39 -0700
commit2b3d66fe695d4bb9978626c861ea586706677a24 (patch)
tree2be2f6889f7ee57e929ac21f296dec4840dd7833
parentMerge pull request #7227 from vonchenplus/fix_memory_leak_v2 (diff)
downloadyuzu-2b3d66fe695d4bb9978626c861ea586706677a24.tar.gz
yuzu-2b3d66fe695d4bb9978626c861ea586706677a24.tar.xz
yuzu-2b3d66fe695d4bb9978626c861ea586706677a24.zip
Move the cmake submodule checkout command to a new line
Presently, if you forget to initialize the git submodules before running cmake, there'll be a helpful message that reminds you to do so. However, on narrow terminals (e.g. 80 wide) there's a word wrap that includes a new line in the middle of the git command, precluding easy copy-paste. This moves the entire git command to its own line to avoid such tragedies. Before: ``` CMake Error at CMakeLists.txt:59 (message): Git submodule externals/inih/inih not found. Please run: git submodule update --init --recursive ``` After: ``` CMake Error at CMakeLists.txt:59 (message): Git submodule externals/inih/inih not found. Please run: git submodule update --init --recursive ```
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eb403205c..c9b40dd60 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,7 +57,7 @@ function(check_submodules_present)
57 string(REGEX REPLACE "path *= *" "" module ${module}) 57 string(REGEX REPLACE "path *= *" "" module ${module})
58 if (NOT EXISTS "${PROJECT_SOURCE_DIR}/${module}/.git") 58 if (NOT EXISTS "${PROJECT_SOURCE_DIR}/${module}/.git")
59 message(FATAL_ERROR "Git submodule ${module} not found. " 59 message(FATAL_ERROR "Git submodule ${module} not found. "
60 "Please run: git submodule update --init --recursive") 60 "Please run: \ngit submodule update --init --recursive")
61 endif() 61 endif()
62 endforeach() 62 endforeach()
63endfunction() 63endfunction()