diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2019-05-04 15:09:31 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2019-05-07 14:37:24 (GMT) |
commit | 30b873c05d6281b865ba08524bb1b90e0afd1ece (patch) | |
tree | 235ff9a85d3a4e83de7f2b7ad94037d1edcb07eb /Tests/UseSWIG/ModuleName/CMakeLists.txt | |
parent | 37bf503db268c41d5a337265300357c76bda34ea (diff) | |
download | CMake-30b873c05d6281b865ba08524bb1b90e0afd1ece.zip CMake-30b873c05d6281b865ba08524bb1b90e0afd1ece.tar.gz CMake-30b873c05d6281b865ba08524bb1b90e0afd1ece.tar.bz2 |
FindPython*: Manage weak link for Python modules
Add new target Python::Module which take care of platform requirements
for Python module development.
Fixes: #18100
Diffstat (limited to 'Tests/UseSWIG/ModuleName/CMakeLists.txt')
-rw-r--r-- | Tests/UseSWIG/ModuleName/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/UseSWIG/ModuleName/CMakeLists.txt b/Tests/UseSWIG/ModuleName/CMakeLists.txt index de63883..435b441 100644 --- a/Tests/UseSWIG/ModuleName/CMakeLists.txt +++ b/Tests/UseSWIG/ModuleName/CMakeLists.txt @@ -34,7 +34,7 @@ set_target_properties (example1 PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/example1" ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/example1" RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/example1") -target_link_libraries(example1 PRIVATE Python2::Python) +target_link_libraries(example1 PRIVATE Python2::Module) add_test (NAME ModuleName.example1 |