diff options
author | bunnei <bunneidev@gmail.com> | 2019-12-06 19:19:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-06 19:19:04 +0100 |
commit | ef2b6733d0dbf060de8078107c1d6b073e483cfb (patch) | |
tree | b9bf031380326554c416dcc3f4c07df1f5064e8a /CMakeLists.txt | |
parent | Merge pull request #3191 from yuzu-emu/jroweboy-patch-1 (diff) | |
parent | Ignore git-related files in cmake for EA tarballs (diff) | |
download | yuzu-ef2b6733d0dbf060de8078107c1d6b073e483cfb.tar yuzu-ef2b6733d0dbf060de8078107c1d6b073e483cfb.tar.gz yuzu-ef2b6733d0dbf060de8078107c1d6b073e483cfb.tar.bz2 yuzu-ef2b6733d0dbf060de8078107c1d6b073e483cfb.tar.lz yuzu-ef2b6733d0dbf060de8078107c1d6b073e483cfb.tar.xz yuzu-ef2b6733d0dbf060de8078107c1d6b073e483cfb.tar.zst yuzu-ef2b6733d0dbf060de8078107c1d6b073e483cfb.zip |
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b3b0d6d5..118572c03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,7 @@ option(ENABLE_VULKAN "Enables Vulkan backend" ON) option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) -if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/hooks/pre-commit) +if(EXISTS ${PROJECT_SOURCE_DIR}/hooks/pre-commit AND NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/hooks/pre-commit) message(STATUS "Copying pre-commit hook") file(COPY hooks/pre-commit DESTINATION ${PROJECT_SOURCE_DIR}/.git/hooks) @@ -49,7 +49,10 @@ function(check_submodules_present) endif() endforeach() endfunction() -check_submodules_present() + +if(EXISTS ${PROJECT_SOURCE_DIR}/.gitmodules) + check_submodules_present() +endif() configure_file(${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.qrc ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.qrc |