From 0c6de554622acaee5770e05658c380bd828b0ce6 Mon Sep 17 00:00:00 2001 From: Paul Gessinger Date: Mon, 6 Jan 2025 13:06:46 +0100 Subject: [PATCH] build: Only install python files for enabled components --- Examples/Python/CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Examples/Python/CMakeLists.txt b/Examples/Python/CMakeLists.txt index acca27e91f4..610efe57c17 100644 --- a/Examples/Python/CMakeLists.txt +++ b/Examples/Python/CMakeLists.txt @@ -268,9 +268,11 @@ foreach(f ${py_files}) CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/python/acts/${f} ${_target} SYMBOLIC ) -endforeach() -install( - DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python/acts/ - DESTINATION ${_python_install_dir} -) + get_filename_component(_rel ${f} DIRECTORY) + + install( + FILES ${CMAKE_CURRENT_SOURCE_DIR}/python/acts/${f} + DESTINATION ${_python_install_dir}/${_rel} + ) +endforeach()