From c08cc839e94f9589346a1c05c0940ba1d6dcf8a8 Mon Sep 17 00:00:00 2001 From: Karol Babioch Date: Wed, 28 Feb 2018 17:38:22 +0100 Subject: [PATCH] Add sanitizer support for jp2 executables --- src/bin/jp2/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/jp2/CMakeLists.txt b/src/bin/jp2/CMakeLists.txt index 4d4bd952..18c1ece3 100644 --- a/src/bin/jp2/CMakeLists.txt +++ b/src/bin/jp2/CMakeLists.txt @@ -44,6 +44,7 @@ endif() # Loop over all executables: foreach(exe opj_decompress opj_compress opj_dump) add_executable(${exe} ${exe}.c ${common_SRCS}) + add_sanitizers(${exe}) if(NOT ${CMAKE_VERSION} VERSION_LESS "2.8.12") target_compile_options(${exe} PRIVATE ${OPENJP2_COMPILE_OPTIONS}) endif()