mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -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:
@@ -21,6 +21,9 @@ endif()
|
||||
if(NOT TARGET Python2::Python)
|
||||
message(SEND_ERROR "Python2::Python not found")
|
||||
endif()
|
||||
if(NOT TARGET Python2::Module)
|
||||
message(SEND_ERROR "Python2::Module not found")
|
||||
endif()
|
||||
|
||||
Python2_add_library (spam2 MODULE ../spam.c)
|
||||
target_compile_definitions (spam2 PRIVATE PYTHON2)
|
||||
|
||||
Reference in New Issue
Block a user