From 97cc0941ad04292d3e99c881d301186f7519d54b Mon Sep 17 00:00:00 2001 From: Karol Babioch Date: Wed, 28 Feb 2018 17:44:09 +0100 Subject: [PATCH] Add sanitizer support for openjpip library --- src/lib/openjpip/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/openjpip/CMakeLists.txt b/src/lib/openjpip/CMakeLists.txt index b3cb8ce8..e49bc7ed 100644 --- a/src/lib/openjpip/CMakeLists.txt +++ b/src/lib/openjpip/CMakeLists.txt @@ -60,6 +60,7 @@ if(WIN32) endif() endif() add_library(openjpip ${OPENJPIP_SRCS} ${LOCAL_SRCS}) +add_sanitizers(openjpip) set_target_properties(openjpip PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES}) if(NOT ${CMAKE_VERSION} VERSION_LESS "2.8.12") @@ -81,6 +82,7 @@ install(TARGETS openjpip if(BUILD_JPIP_SERVER) add_library(openjpip_server STATIC ${OPENJPIP_SRCS} ${SERVER_SRCS}) + add_sanitizers(openjpip_server) target_link_libraries(openjpip_server ${FCGI_LIBRARIES} ${CURL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) set_target_properties(openjpip_server PROPERTIES COMPILE_FLAGS "-DSERVER")