mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-11 17:41:55 +00:00
CMake: be more explicit with python errors
There's been a few reports of users not understanding what the python error means, so spell out the options they have.
This commit is contained in:
parent
72b7c57093
commit
e3f94c71c3
@ -575,7 +575,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")
|
||||
|
Loading…
Reference in New Issue
Block a user