Add sanitizer support for openjpip library

This commit is contained in:
Karol Babioch 2018-02-28 17:44:09 +01:00
parent 8753f77eb2
commit 97cc0941ad
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,7 @@ if(WIN32)
endif() endif()
endif() endif()
add_library(openjpip ${OPENJPIP_SRCS} ${LOCAL_SRCS}) add_library(openjpip ${OPENJPIP_SRCS} ${LOCAL_SRCS})
add_sanitizers(openjpip)
set_target_properties(openjpip set_target_properties(openjpip
PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES}) PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})
if(NOT ${CMAKE_VERSION} VERSION_LESS "2.8.12") if(NOT ${CMAKE_VERSION} VERSION_LESS "2.8.12")
@ -81,6 +82,7 @@ install(TARGETS openjpip
if(BUILD_JPIP_SERVER) if(BUILD_JPIP_SERVER)
add_library(openjpip_server STATIC ${OPENJPIP_SRCS} ${SERVER_SRCS}) 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}) target_link_libraries(openjpip_server ${FCGI_LIBRARIES} ${CURL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
set_target_properties(openjpip_server set_target_properties(openjpip_server
PROPERTIES COMPILE_FLAGS "-DSERVER") PROPERTIES COMPILE_FLAGS "-DSERVER")