diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a8d344..54ad477 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,8 @@ project(git-clang-format-cmake) -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.10) find_package(Git REQUIRED) -find_package(PythonInterp REQUIRED) +find_package(Python COMPONENTS Interpreter REQUIRED) set(GCF_DIR ${CMAKE_CURRENT_LIST_DIR} PARENT_SCOPE) diff --git a/pre-commit.template.sh b/pre-commit.template.sh index 1f482f0..cc2fac8 100755 --- a/pre-commit.template.sh +++ b/pre-commit.template.sh @@ -1,5 +1,5 @@ #!/bin/bash -"@PYTHON_EXECUTABLE@" \ +"@Python_EXECUTABLE@" \ "@GCF_SCRIPT@" \ --hook diff --git a/run_hooks.template.sh b/run_hooks.template.sh index 1590e4a..7982990 100755 --- a/run_hooks.template.sh +++ b/run_hooks.template.sh @@ -1,4 +1,4 @@ #!/bin/bash -"@PYTHON_EXECUTABLE@" \ +"@Python_EXECUTABLE@" \ "@GCF_SCRIPT@" \ $@