mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
FindPython*: Manage weak link for Python modules
Add new target Python::Module which take care of platform requirements for Python module development. Fixes: #18100
This commit is contained in:
@@ -16,6 +16,9 @@ endif()
|
||||
if(NOT TARGET Python::Python)
|
||||
message(SEND_ERROR "Python::Python not found")
|
||||
endif()
|
||||
if(NOT TARGET Python::Module)
|
||||
message(SEND_ERROR "Python::Module not found")
|
||||
endif()
|
||||
|
||||
Python_add_library (spam3 MODULE ../spam.c)
|
||||
target_compile_definitions (spam3 PRIVATE PYTHON3)
|
||||
|
||||
Reference in New Issue
Block a user