diff options
| author | Marc Chevrier <marc.chevrier@gmail.com> | 2019-05-10 13:02:23 (GMT) |
|---|---|---|
| committer | Kitware Robot <kwrobot@kitware.com> | 2019-05-10 13:02:57 (GMT) |
| commit | 741fb95f660c73035a26b572dfcd3d628d324d57 (patch) | |
| tree | 15dd6f4d617e5ca198b539085cb0ae1d56154cbb /Tests/FindPython/Python2/CMakeLists.txt | |
| parent | 62e826d11b91185208363f9c10220b67c75450e5 (diff) | |
| parent | 30b873c05d6281b865ba08524bb1b90e0afd1ece (diff) | |
| download | CMake-741fb95f660c73035a26b572dfcd3d628d324d57.zip CMake-741fb95f660c73035a26b572dfcd3d628d324d57.tar.gz CMake-741fb95f660c73035a26b572dfcd3d628d324d57.tar.bz2 | |
Merge topic 'FindPython-module'
30b873c05d FindPython*: Manage weak link for Python modules
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !3291
Diffstat (limited to 'Tests/FindPython/Python2/CMakeLists.txt')
| -rw-r--r-- | Tests/FindPython/Python2/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/FindPython/Python2/CMakeLists.txt b/Tests/FindPython/Python2/CMakeLists.txt index a0753f6..274745a 100644 --- a/Tests/FindPython/Python2/CMakeLists.txt +++ b/Tests/FindPython/Python2/CMakeLists.txt @@ -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) |
