Add sanitizer support for openmj2 library

This commit is contained in:
Karol Babioch 2018-02-28 17:44:40 +01:00
parent 40e620ee52
commit 2ce57debf6
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ endif()
# build mj2 lib: # build mj2 lib:
add_library(${OPENMJ2_LIBRARY_NAME} ${OPENMJ2_SRCS}) add_library(${OPENMJ2_LIBRARY_NAME} ${OPENMJ2_SRCS})
add_sanitizers(${OPENMJ2_LIBRARY_NAME})
# FIXME: We are using an openjpeg 1.5 copy: # FIXME: We are using an openjpeg 1.5 copy:
#target_link_libraries(${OPENMJ2_LIBRARY_NAME} openjp2) #target_link_libraries(${OPENMJ2_LIBRARY_NAME} openjp2)
if(UNIX) if(UNIX)