summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLectem <lectem@gmail.com>2015-05-31 13:24:23 +0200
committerLectem <lectem@gmail.com>2015-06-09 19:59:39 +0200
commit85183a702ab342de03d7a8d7b73e1fb0f7e346f2 (patch)
tree4fcf5606b0a3d564ef62e28ec13aee70b5fdb5f1 /CMakeLists.txt
parentMerge pull request #805 from lioncash/warn (diff)
downloadyuzu-85183a702ab342de03d7a8d7b73e1fb0f7e346f2.tar
yuzu-85183a702ab342de03d7a8d7b73e1fb0f7e346f2.tar.gz
yuzu-85183a702ab342de03d7a8d7b73e1fb0f7e346f2.tar.bz2
yuzu-85183a702ab342de03d7a8d7b73e1fb0f7e346f2.tar.lz
yuzu-85183a702ab342de03d7a8d7b73e1fb0f7e346f2.tar.xz
yuzu-85183a702ab342de03d7a8d7b73e1fb0f7e346f2.tar.zst
yuzu-85183a702ab342de03d7a8d7b73e1fb0f7e346f2.zip
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc742317c..d958dfc35 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,6 +4,13 @@ cmake_minimum_required(VERSION 2.8.11)
project(citra)
+if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git/hooks/pre-commit)
+ message(STATUS "Copying pre-commit hook")
+ file(COPY hooks/pre-commit
+ DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/.git/hooks
+ FILE_PERMISSIONS WORLD_EXECUTE )
+endif()
+
if (NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-attributes -pthread")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")