mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 05:08:47 -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:
@@ -36,7 +36,7 @@ set_target_properties (example1 PROPERTIES
|
||||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/Python"
|
||||
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/Python"
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/Python")
|
||||
target_link_libraries(example1 PRIVATE Python::Python)
|
||||
target_link_libraries(example1 PRIVATE Python::Module)
|
||||
|
||||
# re-use sample interface file for another plugin
|
||||
set_property(SOURCE "../example.i" APPEND PROPERTY
|
||||
|
||||
Reference in New Issue
Block a user