From 391b0f2255088c11028b9405c672974b12ace6b7 Mon Sep 17 00:00:00 2001 From: Martin Hierholzer Date: Tue, 20 Jan 2026 14:54:42 +0100 Subject: [PATCH] fix: install for asan/tsan builds --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 631e741..07b08c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,7 +119,10 @@ else() endif() set (matlab_helper_path "share/ChimeraTK-DeviceAccess-PythonBindings-${${PROJECT_NAME}_MAJOR_VERSION}.${${PROJECT_NAME}_MINOR_VERSION}") -install( FILES ${PROJECT_BINARY_DIR}/deviceaccess.pyi DESTINATION ${install_path} ) +if((NOT ${CMAKE_BUILD_TYPE} STREQUAL "asan") AND(NOT ${CMAKE_BUILD_TYPE} STREQUAL "tsan")) + # stubgen does not work for asan/tsan builds (see above), hence we skip installation of the interface file + install( FILES ${PROJECT_BINARY_DIR}/deviceaccess.pyi DESTINATION ${install_path} ) +endif() install( FILES ${PROJECT_SOURCE_DIR}/mtca4u.py DESTINATION ${install_path} ) install( TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${install_path} ) install(FILES ${PROJECT_SOURCE_DIR}/pybind11_builtins.py DESTINATION ${matlab_helper_path})