diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-04-15 13:55:50 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-04-16 12:38:39 (GMT) |
commit | c1b4044d3ef4cc2414271180154a44a2bc000b91 (patch) | |
tree | b3cd15623d0e8e9c44354027ef41e9ab4ab7b664 /Tests/FindPython/Python | |
parent | bec1c211d99e6de81a8d7e52d518f5f5ea12cc83 (diff) | |
download | CMake-c1b4044d3ef4cc2414271180154a44a2bc000b91.zip CMake-c1b4044d3ef4cc2414271180154a44a2bc000b91.tar.gz CMake-c1b4044d3ef4cc2414271180154a44a2bc000b91.tar.bz2 |
FindPython: add sub-components to Development component
Fixes: #20425
Diffstat (limited to 'Tests/FindPython/Python')
-rw-r--r-- | Tests/FindPython/Python/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/FindPython/Python/CMakeLists.txt b/Tests/FindPython/Python/CMakeLists.txt index 3ee38e3..e8828a2 100644 --- a/Tests/FindPython/Python/CMakeLists.txt +++ b/Tests/FindPython/Python/CMakeLists.txt @@ -8,6 +8,12 @@ find_package(Python ${Python_REQUESTED_VERSION} REQUIRED COMPONENTS Interpreter if (NOT Python_FOUND) message (FATAL_ERROR "Fail to found Python ${Python_REQUESTED_VERSION}") endif() +if (NOT Python_Development.Module_FOUND) + message (FATAL_ERROR "Fail to found Python ${Python_REQUESTED_VERSION}, COMPONENT 'Development.Module'") +endif() +if (NOT Python_Development.Embed_FOUND) + message (FATAL_ERROR "Fail to found Python ${Python_REQUESTED_VERSION}, COMPOENENT 'Development.Embed'") +endif() if(NOT TARGET Python::Interpreter) message(SEND_ERROR "Python::Interpreter not found") |