Allow to disable AubStream

Change-Id: I442e0f14d65099d245b54ec29cb3c7c7098f6cef
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2019-02-07 09:57:11 +01:00
committed by sys_ocldev
parent 30c57fd507
commit bc62b385a0

View File

@@ -121,12 +121,14 @@ else()
message(FATAL_ERROR "Aub Stream headers not available!")
endif()
if(NOT DEFINED AUB_STREAM_DIR)
if(NOT DEFINED AUB_STREAM_DIR AND NOT DISABLE_AUB_STREAM)
get_filename_component(TEMP_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../aub_stream/aub_mem_dump" ABSOLUTE)
if(IS_DIRECTORY ${TEMP_DIR})
set(AUB_STREAM_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../aub_stream")
message(STATUS "Aub Stream dir: ${AUB_STREAM_DIR}")
endif()
else()
unset(AUB_STREAM_DIR)
endif(NOT DEFINED AUB_STREAM_DIR)
if(LIBDRM_DIR)