Commit 4495dbcf authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Allow test program to be built with asan

parent 1528cbc2
......@@ -7,3 +7,9 @@ add_executable(${PROJECT_NAME}
${LIBVLCPP_HEADERS}
)
target_link_libraries( ${PROJECT_NAME} ${LIBVLC_LIBRARY} ${LIBVLCCORE_LIBRARY} )
option(WITH_ASAN "Build with address sanitizer" OFF)
if(${WITH_ASAN})
add_definitions("-fsanitize=address -fno-omit-frame-pointer")
target_link_libraries(${PROJECT_NAME} "asan")
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment