mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
@@ -13,6 +13,15 @@ find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
|
||||
if (NOT Python3_FOUND)
|
||||
message (FATAL_ERROR "Fail to found Python 3")
|
||||
endif()
|
||||
if (NOT Python3_Development_FOUND)
|
||||
message (FATAL_ERROR "Fail to found Python 3 'Development' component")
|
||||
endif()
|
||||
if (NOT Python3_Development.Module_FOUND)
|
||||
message (FATAL_ERROR "Fail to found Python 3 'Development.Module' component")
|
||||
endif()
|
||||
if (NOT Python3_Development.Embed_FOUND)
|
||||
message (FATAL_ERROR "Fail to found Python 3 'Development.Embed' component")
|
||||
endif()
|
||||
|
||||
if(NOT TARGET Python3::Interpreter)
|
||||
message(SEND_ERROR "Python3::Interpreter not found")
|
||||
|
||||
Reference in New Issue
Block a user