Skip to content

Commit

Permalink
Fail early if python not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasper Peeters committed Sep 27, 2024
1 parent 02f224e commit 65252a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,13 @@ if(WIN32)
# Set a hint for finding Python, so we hopefully get the msys
# version. This otherwise breaks on github runners.
execute_process(
COMMAND cygpath -m /ucrt64/usr/bin/
COMMAND cygpath -m /usr/bin/
OUTPUT_VARIABLE PYTHON_HINT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
find_package(Python COMPONENTS Interpreter Development HINTS ${PYTHON_HINT})
find_package(Python REQUIRED COMPONENTS Interpreter Development HINTS ${PYTHON_HINT})
else()
find_package(Python COMPONENTS Interpreter Development)
find_package(Python REQUIRED COMPONENTS Interpreter Development)
endif()
find_package(pybind11 CONFIG)
if (NOT pybind11_FOUND)
Expand Down

0 comments on commit 65252a1

Please sign in to comment.