summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-07-09 03:27:12 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-07-09 03:27:14 +0200
commit849c6db3354ce659d3042863f649efc8dcd5cf12 (patch)
tree6822eef1ac7e9b21bf7abce13238f07fe608fa4d /CMakeLists.txt
parentMerge pull request #6539 from lat9nq/default-setting (diff)
downloadyuzu-849c6db3354ce659d3042863f649efc8dcd5cf12.tar
yuzu-849c6db3354ce659d3042863f649efc8dcd5cf12.tar.gz
yuzu-849c6db3354ce659d3042863f649efc8dcd5cf12.tar.bz2
yuzu-849c6db3354ce659d3042863f649efc8dcd5cf12.tar.lz
yuzu-849c6db3354ce659d3042863f649efc8dcd5cf12.tar.xz
yuzu-849c6db3354ce659d3042863f649efc8dcd5cf12.tar.zst
yuzu-849c6db3354ce659d3042863f649efc8dcd5cf12.zip
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8b1734f36..716256cd5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,9 +47,10 @@ if (NOT IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE)
endif()
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)
+ if (EXISTS ${PROJECT_SOURCE_DIR}/.git/)
+ message(STATUS "Copying pre-commit hook")
+ file(COPY hooks/pre-commit DESTINATION ${PROJECT_SOURCE_DIR}/.git/hooks)
+ endif()
endif()
# Sanity check : Check that all submodules are present