Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-10-14 18:30:51 +0300
committerEdward Thomson <ethomson@edwardthomson.com>2015-10-14 18:30:51 +0300
commitac7e50dd37e310b35175111904ca3da75423b735 (patch)
treef6fdfcad3656098d7590aba6b3fb8443c0865aa5 /CMakeLists.txt
parentd8dc2b8f54cdf7d707c6a552175dc0d619dc230e (diff)
parente3f94c71c3792716b89b3b56b7dbb984e1620e34 (diff)
Merge pull request #3453 from libgit2/cmn/warn-python
CMake: be more explicit with python errors
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8f0d50700..8f58eb0e7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -591,7 +591,12 @@ INSTALL(FILES include/git2.h DESTINATION ${INCLUDE_INSTALL_DIR} )
# Tests
IF (BUILD_CLAR)
- FIND_PACKAGE(PythonInterp REQUIRED)
+ FIND_PACKAGE(PythonInterp)
+
+ IF(NOT PYTHONINTERP_FOUND)
+ MESSAGE(FATAL_ERROR "Could not find a python interpeter, which is needed to build the tests. "
+ "Make sure python is available, or pass -DBUILD_CLAR=OFF to skip building the tests")
+ ENDIF()
SET(CLAR_FIXTURES "${CMAKE_CURRENT_SOURCE_DIR}/tests/resources/")
SET(CLAR_PATH "${CMAKE_CURRENT_SOURCE_DIR}/tests")