Re-enable AubStream if AUB_STREAM_DIR set.

Change-Id: I5fee87281a434ae77e0df98aad31b462d0c5b6eb
Signed-off-by: Brandon Fliflet <brandon.fliflet@intel.com>
This commit is contained in:
Brandon Fliflet
2019-02-14 03:41:50 -08:00
committed by sys_ocldev
parent 8e1e874a76
commit 46225890a9

View File

@ -121,13 +121,15 @@ else()
message(FATAL_ERROR "Aub Stream headers not available!")
endif()
if(NOT DEFINED AUB_STREAM_DIR AND NOT DISABLE_AUB_STREAM)
if(NOT DEFINED AUB_STREAM_DIR)
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()
endif()
if(DISABLE_AUB_STREAM)
unset(AUB_STREAM_DIR)
endif()