Build: tag rdkitpython install rules with COMPONENT python (#9288)

#9287 tagged these install rules with COMPONENT dev, which routes
rdkitpython-config.cmake / rdkitpython-targets.cmake into the dev
component alongside the python-agnostic C++ cmake config. That's
correct progress over the prior Unspecified default, but `dev` is the
wrong group: these files hardcode a single python version via
configure_file substitution (find_dependency(Python3 3.X ...)
and Boost component python3XX/numpy3XX), so they belong with the
python wrappers — themselves python-version-specific — rather than
with python-agnostic dev artifacts.

Change the two affected COMPONENT tags from dev to python.
This commit is contained in:
Steven Kearnes
2026-05-28 07:24:54 -04:00
committed by greg landrum
parent e51844e7b1
commit 2f9adc092f

View File

@@ -643,7 +643,7 @@ if(RDK_BUILD_PYTHON_WRAPPERS)
FILE ${RDKitPython_EXPORTED_TARGETS}.cmake
NAMESPACE RDKit::
DESTINATION ${RDKit_LibDir}/cmake/rdkitpython
COMPONENT dev
COMPONENT python
)
write_basic_package_version_file(
@@ -660,7 +660,7 @@ if(RDK_BUILD_PYTHON_WRAPPERS)
${RDKit_BINARY_DIR}/rdkitpython-config.cmake
${RDKit_BINARY_DIR}/rdkitpython-config-version.cmake
DESTINATION ${RDKit_LibDir}/cmake/rdkitpython
COMPONENT dev)
COMPONENT python)
endif(RDK_BUILD_PYTHON_WRAPPERS)
# Memory testing setup