FindPython: fix error on multiple queries with different COMPONENTS

Ensure that multiple queries with different COMPONENTS specified in
different sub-directories are fully supported.
This commit is contained in:
Marc Chevrier
2022-06-25 14:45:29 +02:00
committed by Brad King
parent 8c562ece28
commit ece3bedbf2
4 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
cmake_minimum_required(VERSION 3.1)
project(TestDifferentComponents LANGUAGES C)
add_subdirectory(subdir)
find_package(Python3 REQUIRED COMPONENTS Development.Module)

View File

@@ -0,0 +1,2 @@
find_package(Python3 REQUIRED COMPONENTS Development)