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 65252a1 commit e315c92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ if(WIN32)
OUTPUT_VARIABLE PYTHON_HINT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
message(STATUS "Using Python hint ${PYTHON_HINT}")
find_package(Python REQUIRED COMPONENTS Interpreter Development HINTS ${PYTHON_HINT})
else()
find_package(Python REQUIRED COMPONENTS Interpreter Development)
Expand Down

0 comments on commit e315c92

Please sign in to comment.