From 6a6943855841dac3580d98ea2aaaeb302649c6d0 Mon Sep 17 00:00:00 2001 From: Joaquin Anton Date: Thu, 30 May 2024 10:56:25 +0200 Subject: [PATCH] Fix ASAN build Signed-off-by: Joaquin Anton --- plugins/video/pkg_src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/video/pkg_src/CMakeLists.txt b/plugins/video/pkg_src/CMakeLists.txt index 8f8158193fb..f103db39809 100644 --- a/plugins/video/pkg_src/CMakeLists.txt +++ b/plugins/video/pkg_src/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -75,7 +75,7 @@ find_library(cuda_LIBRARY cuda add_custom_target(dali_${PLUGIN_NAME}_generate_stubs ALL DEPENDS dali_${PLUGIN_NAME} BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/fn/plugin/video/ - COMMAND LD_PRELOAD=${cuda_LIBRARY} ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/generate_plugin_stubs.py + COMMAND LD_PRELOAD="${LD_PRELOAD} ${cuda_LIBRARY}" ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/generate_plugin_stubs.py ${CMAKE_CURRENT_BINARY_DIR} ${PROJECT_BINARY_DIR}/libdali_${PLUGIN_NAME}.so )