diff options
| author | Marc Chevrier <marc.chevrier@gmail.com> | 2022-06-25 14:45:29 +0200 |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2022-06-27 13:16:29 -0400 |
| commit | ece3bedbf2cdc4857f19e2fceafa98a3f8002b4a (patch) | |
| tree | af598733f02817680c8f8effb17bd5d0b0b6df7f /Tests/FindPython/DifferentComponents | |
| parent | 8c562ece28b7a13ddb734b8c51710ebafe9ac570 (diff) | |
| download | cmake-ece3bedbf2cdc4857f19e2fceafa98a3f8002b4a.tar.gz | |
FindPython: fix error on multiple queries with different COMPONENTS
Ensure that multiple queries with different COMPONENTS specified in
different sub-directories are fully supported.
Diffstat (limited to 'Tests/FindPython/DifferentComponents')
| -rw-r--r-- | Tests/FindPython/DifferentComponents/CMakeLists.txt | 7 | ||||
| -rw-r--r-- | Tests/FindPython/DifferentComponents/subdir/CMakeLists.txt | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Tests/FindPython/DifferentComponents/CMakeLists.txt b/Tests/FindPython/DifferentComponents/CMakeLists.txt new file mode 100644 index 0000000000..7476632a4e --- /dev/null +++ b/Tests/FindPython/DifferentComponents/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 3.1) + +project(TestDifferentComponents LANGUAGES C) + +add_subdirectory(subdir) + +find_package(Python3 REQUIRED COMPONENTS Development.Module) diff --git a/Tests/FindPython/DifferentComponents/subdir/CMakeLists.txt b/Tests/FindPython/DifferentComponents/subdir/CMakeLists.txt new file mode 100644 index 0000000000..98fcd5f51c --- /dev/null +++ b/Tests/FindPython/DifferentComponents/subdir/CMakeLists.txt @@ -0,0 +1,2 @@ + +find_package(Python3 REQUIRED COMPONENTS Development) |
