summaryrefslogtreecommitdiffstats
path: root/Tests/FindPython/Python3
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2019-05-10 13:02:23 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-05-10 13:02:57 (GMT)
commit741fb95f660c73035a26b572dfcd3d628d324d57 (patch)
tree15dd6f4d617e5ca198b539085cb0ae1d56154cbb /Tests/FindPython/Python3
parent62e826d11b91185208363f9c10220b67c75450e5 (diff)
parent30b873c05d6281b865ba08524bb1b90e0afd1ece (diff)
downloadCMake-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/Python3')
-rw-r--r--Tests/FindPython/Python3/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/FindPython/Python3/CMakeLists.txt b/Tests/FindPython/Python3/CMakeLists.txt
index 65eea4c..b21a15b 100644
--- a/Tests/FindPython/Python3/CMakeLists.txt
+++ b/Tests/FindPython/Python3/CMakeLists.txt
@@ -21,6 +21,9 @@ endif()
if(NOT TARGET Python3::Python)
message(SEND_ERROR "Python2::Python not found")
endif()
+if(NOT TARGET Python3::Module)
+ message(SEND_ERROR "Python2::Module not found")
+endif()
Python3_add_library (spam3 MODULE ../spam.c)
target_compile_definitions (spam3 PRIVATE PYTHON3)