mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 06:40:48 -06:00
FindPython: Add possibility to control scope of artifacts.
Fixes: #20362
This commit is contained in:
@@ -15,14 +15,14 @@ if (NOT Python3_FOUND)
|
||||
endif()
|
||||
|
||||
if(NOT TARGET Python3::Interpreter)
|
||||
message(SEND_ERROR "Python2::Interpreter not found")
|
||||
message(SEND_ERROR "Python3::Interpreter not found")
|
||||
endif()
|
||||
|
||||
if(NOT TARGET Python3::Python)
|
||||
message(SEND_ERROR "Python2::Python not found")
|
||||
message(SEND_ERROR "Python3::Python not found")
|
||||
endif()
|
||||
if(NOT TARGET Python3::Module)
|
||||
message(SEND_ERROR "Python2::Module not found")
|
||||
message(SEND_ERROR "Python3::Module not found")
|
||||
endif()
|
||||
|
||||
Python3_add_library (spam3 MODULE ../spam.c)
|
||||
|
||||
Reference in New Issue
Block a user